提交 012e3381 作者: keks 提交者: Jeromy

fix content type detection to allow adding via curl

fixed in cmdkit1.0

License: MIT
Signed-off-by: 's avatarkeks <keks@cryptoscope.co>
上级 7d57def0
# TODO before merge
- 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
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
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论