chore: dir-index-html 1.2.1

release notes:
https://github.com/ipfs/dir-index-html/releases/tag/1.2.1
This commit is contained in:
Marcin Rataj 2020-09-29 02:30:48 +02:00
parent 3ed46d995f
commit 4deaf050d7
No known key found for this signature in database
GPG Key ID: 222B6784D5A79E42
2 changed files with 3 additions and 3 deletions

@ -1 +1 @@
Subproject commit 92efd3dfd1cdaf2ca50b34b2b5d1243c5dcc8af7
Subproject commit 5c6147fd02e88b0a235ac655f58741436a2f2b80

View File

@ -71,13 +71,13 @@ DIR_HOSTNAME="${DIR_CID}.ipfs.localhost"
# note: we skip DNS lookup by running curl with --resolve $DIR_HOSTNAME:127.0.0.1
test_expect_success "path gw: backlink on root CID should point origin root" '
curl -sD - --resolve $DIR_HOSTNAME:127.0.0.1 http://$DIR_HOSTNAME:$GWAY_PORT/ > list_response &&
curl -sD - --resolve $DIR_HOSTNAME:$GWAY_PORT:127.0.0.1 http://$DIR_HOSTNAME:$GWAY_PORT/ > list_response &&
test_should_contain "Index of" list_response &&
test_should_contain "<a href=\"/\">..</a>" list_response
'
test_expect_success "path gw: Etag should be present" '
curl -sD - --resolve $DIR_HOSTNAME:127.0.0.1 http://$DIR_HOSTNAME:$GWAY_PORT/ą/ę > list_response &&
curl -sD - --resolve $DIR_HOSTNAME:$GWAY_PORT:127.0.0.1 http://$DIR_HOSTNAME:$GWAY_PORT/ą/ę > list_response &&
test_should_contain "Index of" list_response &&
test_should_contain "Etag: \"DirIndex-" list_response
'