mirror of
https://github.com/ipfs/kubo.git
synced 2025-07-01 19:24:14 +08:00
Add check for HEAD response to be empty
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
This commit is contained in:
@ -116,6 +116,11 @@ test_expect_success "output looks good" '
|
|||||||
grep "Content-Type: text/html" indexout
|
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 ipfs readonly api
|
||||||
|
|
||||||
test_curl_gateway_api() {
|
test_curl_gateway_api() {
|
||||||
|
Reference in New Issue
Block a user