Commit cb1c5c53 authored by Jeromy's avatar Jeromy

add sharness test for index.html content type

License: MIT
Signed-off-by: default avatarJeromy <jeromyj@gmail.com>
parent a83c3a33
......@@ -92,6 +92,21 @@ test_expect_success "log output looks good" '
grep "log API client connected" log_out
'
test_expect_success "setup index hash" '
mkdir index &&
echo "<p></p>" > index/index.html &&
INDEXHASH=$(ipfs add -q -r index | tail -n1)
echo index: $INDEXHASH
'
test_expect_success "GET 'index.html' has correct content type" '
curl -I "http://127.0.0.1:$port/ipfs/$INDEXHASH/" > indexout
'
test_expect_success "output looks good" '
grep "Content-Type: text/html" indexout
'
# test ipfs readonly api
test_curl_gateway_api() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment