Skip to content

Commit

Permalink
Merge pull request #2775 from ipfs/feature/head-no-body
Browse files Browse the repository at this point in the history
Add check for HEAD response to be empty
  • Loading branch information
whyrusleeping committed Jun 1, 2016
2 parents c814478 + f99bb4f commit ed2d94b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/sharness/t0110-gateway.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit ed2d94b

Please sign in to comment.