提交 f99bb4f9 作者: Jakub Sztandera

Add check for HEAD response to be empty

License: MIT
Signed-off-by: 's avatarJakub Sztandera <kubuxu@protonmail.ch>
上级 dcf75036
......@@ -116,6 +116,11 @@ test_expect_success "output looks good" '
grep "Content-Type: text/html" indexout
'
test_expect_success "HEAD 'index.html' has no content" '
curl -X HEAD --max-time 1 http://127.0.0.1:$port/ipfs/$INDEXHASH/ > output;
[ ! -s output ]
'
# test ipfs readonly api
test_curl_gateway_api() {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论