fix content type detection to allow adding via curl
fixed in cmdkit1.0 License: MIT Signed-off-by: keks <keks@cryptoscope.co>
keks committed
Dec 18, 2017 at 16:04 UTC
012e3381f199885a572a3d775086cabbb40f9797
2 files changed
+1
-2
TODO.md
-1
@@ -1,4 +1,3 @@
1
# TODO before merge
2
3
- t0110 fails (marked as known breakage for now) Issue: go-ipfs-cmds#47
4
-- t0410 fails (marked as known breakage for now)
test/sharness/t0410-api-add.sh
+1
-1
@@ -13,7 +13,7 @@ test_init_ipfs
13
# Verify that that API add command returns size
14
15
test_launch_ipfs_daemon
16
-test_expect_failure "API Add response includes size field" '
16
+test_expect_success "API Add response includes size field" '
17
echo "hi" | curl -s -F file=@- "http://localhost:$API_PORT/api/v0/add" | grep "\"Size\": *\"11\""
18
'
19
test_kill_ipfs_daemon