From f99bb4f9d5474bd630cfeab6ebbbef23162d49c6 Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Tue, 31 May 2016 17:18:50 +0200 Subject: [PATCH] Add check for HEAD response to be empty License: MIT Signed-off-by: Jakub Sztandera --- test/sharness/t0110-gateway.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/sharness/t0110-gateway.sh b/test/sharness/t0110-gateway.sh index 59887c734..ea1497b93 100755 --- a/test/sharness/t0110-gateway.sh +++ b/test/sharness/t0110-gateway.sh @@ -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() {