File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,13 @@ test_expect_success "GET IPFS directory with index.html returns redirect to add
7575 test_should_contain \" Location: /ipfs/$HASH2 /dirwithindex/?query=to-remember\" response_without_slash
7676"
7777
78+ # This enables go get to parse go-import meta tags from index.html files stored in IPFS
79+ # https://github.com/ipfs/kubo/pull/3963
80+ test_expect_success " GET IPFS directory with index.html and no trailing slash returns expected output when go-get is passed" "
81+ curl -s -o response_with_slash \" http://127.0.0.1:$port /ipfs/$HASH2 /dirwithindex?go-get=1\" &&
82+ test_should_contain \" hello i am a webpage\" response_with_slash
83+ "
84+
7885test_expect_success " GET IPFS directory with index.html and trailing slash returns expected output" "
7986 curl -s -o response_with_slash \" http://127.0.0.1:$port /ipfs/$HASH2 /dirwithindex/?query=to-remember\" &&
8087 test_should_contain \" hello i am a webpage\" response_with_slash
You can’t perform that action at this time.
0 commit comments