Skip to content

Commit 0b923b7

Browse files
lidelaschmahmann
authored andcommitted
1 parent 8b7432d commit 0b923b7

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

assets/bindata.go

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/bindata_version_hash.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
package assets
33

44
const (
5-
BindataVersionHash = "605b5945438e1fe2eaf8a6571cca7ecda12d5599"
5+
BindataVersionHash = "512eb789cd905714e03f29d4e04de7549e8c9c3e"
66
)

core/corehttp/gateway_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ func TestIPNSHostnameBacklinks(t *testing.T) {
506506
if !strings.Contains(s, "<a href=\"/foo%3F%20%23%3C%27/file.txt\">") {
507507
t.Fatalf("expected file in directory listing")
508508
}
509-
if !strings.Contains(s, "<a class=\"ipfs-hash\" href=\"https://cid.ipfs.io/#") {
509+
if !strings.Contains(s, "<a class=\"ipfs-hash\" translate=\"no\" href=\"https://cid.ipfs.io/#") {
510510
// https://github.com/ipfs/dir-index-html/issues/42
511511
t.Fatalf("expected links to cid.ipfs.io in CID column when on DNSLink website")
512512
}
@@ -543,7 +543,7 @@ func TestIPNSHostnameBacklinks(t *testing.T) {
543543
if !strings.Contains(s, "<a href=\"/file.txt\">") {
544544
t.Fatalf("expected file in directory listing")
545545
}
546-
if !strings.Contains(s, "<a class=\"ipfs-hash\" href=\"https://cid.ipfs.io/#") {
546+
if !strings.Contains(s, "<a class=\"ipfs-hash\" translate=\"no\" href=\"https://cid.ipfs.io/#") {
547547
// https://github.com/ipfs/dir-index-html/issues/42
548548
t.Fatalf("expected links to cid.ipfs.io in CID column when on DNSLink website")
549549
}

test/sharness/t0115-gateway-dir-listing.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ test_expect_success "path gw: name column should be a link to its content path"
6060
'
6161

6262
test_expect_success "path gw: hash column should be a CID link with filename param" '
63-
test_should_contain "<a class=\"ipfs-hash\" href=\"/ipfs/$FILE_CID?filename=file-%25C5%25BA%25C5%2582.txt\">" list_response
63+
test_should_contain "<a class=\"ipfs-hash\" translate=\"no\" href=\"/ipfs/$FILE_CID?filename=file-%25C5%25BA%25C5%2582.txt\">" list_response
6464
'
6565

6666
## ============================================================================
@@ -91,7 +91,7 @@ test_expect_success "path gw: name column should be a link to content root mount
9191
'
9292

9393
test_expect_success "path gw: hash column should be a CID link to path router with filename param" '
94-
test_should_contain "<a class=\"ipfs-hash\" href=\"//localhost:$GWAY_PORT/ipfs/$FILE_CID?filename=file-%25C5%25BA%25C5%2582.txt\">" list_response
94+
test_should_contain "<a class=\"ipfs-hash\" translate=\"no\" href=\"//localhost:$GWAY_PORT/ipfs/$FILE_CID?filename=file-%25C5%25BA%25C5%2582.txt\">" list_response
9595
'
9696

9797
## ============================================================================
@@ -132,7 +132,7 @@ test_expect_success "dnslink gw: name column should be a link to content root mo
132132
# DNSLink websites don't have public gateway mounted by default
133133
# See: https://github.com/ipfs/dir-index-html/issues/42
134134
test_expect_success "dnslink gw: hash column should be a CID link to cid.ipfs.io" '
135-
test_should_contain "<a class=\"ipfs-hash\" href=\"https://cid.ipfs.io/#$FILE_CID\" target=\"_blank\" rel=\"noreferrer noopener\">" list_response
135+
test_should_contain "<a class=\"ipfs-hash\" translate=\"no\" href=\"https://cid.ipfs.io/#$FILE_CID\" target=\"_blank\" rel=\"noreferrer noopener\">" list_response
136136
'
137137

138138
## ============================================================================

0 commit comments

Comments
 (0)