mirror of
https://github.com/ipfs/kubo.git
synced 2025-07-02 03:28:25 +08:00
fix content type detection to allow adding via curl
fixed in cmdkit1.0 License: MIT Signed-off-by: keks <keks@cryptoscope.co>
This commit is contained in:
1
TODO.md
1
TODO.md
@ -1,4 +1,3 @@
|
|||||||
# TODO before merge
|
# TODO before merge
|
||||||
|
|
||||||
- t0110 fails (marked as known breakage for now) Issue: go-ipfs-cmds#47
|
- t0110 fails (marked as known breakage for now) Issue: go-ipfs-cmds#47
|
||||||
- t0410 fails (marked as known breakage for now)
|
|
||||||
|
@ -13,7 +13,7 @@ test_init_ipfs
|
|||||||
# Verify that that API add command returns size
|
# Verify that that API add command returns size
|
||||||
|
|
||||||
test_launch_ipfs_daemon
|
test_launch_ipfs_daemon
|
||||||
test_expect_failure "API Add response includes size field" '
|
test_expect_success "API Add response includes size field" '
|
||||||
echo "hi" | curl -s -F file=@- "http://localhost:$API_PORT/api/v0/add" | grep "\"Size\": *\"11\""
|
echo "hi" | curl -s -F file=@- "http://localhost:$API_PORT/api/v0/add" | grep "\"Size\": *\"11\""
|
||||||
'
|
'
|
||||||
test_kill_ipfs_daemon
|
test_kill_ipfs_daemon
|
||||||
|
Reference in New Issue
Block a user