From 012e3381f199885a572a3d775086cabbb40f9797 Mon Sep 17 00:00:00 2001 From: keks Date: Mon, 18 Dec 2017 16:04:50 +0100 Subject: [PATCH] fix content type detection to allow adding via curl fixed in cmdkit1.0 License: MIT Signed-off-by: keks --- TODO.md | 1 - test/sharness/t0410-api-add.sh | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/TODO.md b/TODO.md index ec661a11e..c3ca91383 100644 --- a/TODO.md +++ b/TODO.md @@ -1,4 +1,3 @@ # TODO before merge - t0110 fails (marked as known breakage for now) Issue: go-ipfs-cmds#47 -- t0410 fails (marked as known breakage for now) diff --git a/test/sharness/t0410-api-add.sh b/test/sharness/t0410-api-add.sh index be5eba1ad..d0d6b75c1 100755 --- a/test/sharness/t0410-api-add.sh +++ b/test/sharness/t0410-api-add.sh @@ -13,7 +13,7 @@ test_init_ipfs # Verify that that API add command returns size 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\"" ' test_kill_ipfs_daemon