@cryptotaxi247 / kubo / commits / f99bb4f9d

Add check for HEAD response to be empty

License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>

Jakub Sztandera committed May 31, 2016 at 17:18 UTC f99bb4f9d5474bd630cfeab6ebbbef23162d49c6
1 file changed +5
test/sharness/t0110-gateway.sh
+5
@@ -116,6 +116,11 @@ test_expect_success "output looks good" '
116 grep "Content-Type: text/html" indexout
117 '
118
119 +test_expect_success "HEAD 'index.html' has no content" '
120 + curl -X HEAD --max-time 1 http://127.0.0.1:$port/ipfs/$INDEXHASH/ > output;
121 + [ ! -s output ]
122 +'
123 +
124 # test ipfs readonly api
125
126 test_curl_gateway_api() {