chore: dir-index-html 1.2.1
release notes: https://github.com/ipfs/dir-index-html/releases/tag/1.2.1
Marcin Rataj committed
Sep 29, 2020 at 02:30 UTC
4deaf050d7730908b73c45b7e726eb129bdf243f
2 files changed
+3
-3
assets/dir-index-html
+1
-1
@@ -1 +1 @@
1
-Subproject commit 92efd3dfd1cdaf2ca50b34b2b5d1243c5dcc8af7
1
+Subproject commit 5c6147fd02e88b0a235ac655f58741436a2f2b80
test/sharness/t0115-gateway-dir-listing.sh
+2
-2
@@ -71,13 +71,13 @@ DIR_HOSTNAME="${DIR_CID}.ipfs.localhost"
71
# note: we skip DNS lookup by running curl with --resolve $DIR_HOSTNAME:127.0.0.1
72
73
test_expect_success "path gw: backlink on root CID should point origin root" '
74
- curl -sD - --resolve $DIR_HOSTNAME:127.0.0.1 http://$DIR_HOSTNAME:$GWAY_PORT/ > list_response &&
74
+ curl -sD - --resolve $DIR_HOSTNAME:$GWAY_PORT:127.0.0.1 http://$DIR_HOSTNAME:$GWAY_PORT/ > list_response &&
75
test_should_contain "Index of" list_response &&
76
test_should_contain "<a href=\"/\">..</a>" list_response
77
'
78
79
test_expect_success "path gw: Etag should be present" '
80
- curl -sD - --resolve $DIR_HOSTNAME:127.0.0.1 http://$DIR_HOSTNAME:$GWAY_PORT/ą/ę > list_response &&
80
+ curl -sD - --resolve $DIR_HOSTNAME:$GWAY_PORT:127.0.0.1 http://$DIR_HOSTNAME:$GWAY_PORT/ą/ę > list_response &&
81
test_should_contain "Index of" list_response &&
82
test_should_contain "Etag: \"DirIndex-" list_response
83
'