Skip to content

Commit c0dafe1

Browse files
authored
fix: hint for subdomain gateways (#209)
1 parent 26994cf commit c0dafe1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/subdomain_gateway_ipfs_test.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ func TestGatewaySubdomains(t *testing.T) {
141141
{
142142
Name: "request for example.com/ipfs/{CIDv1} redirects to subdomain",
143143
Hint: `
144-
subdomains should not return payload directly,
144+
path requests to gateways with subdomain support
145+
should not return payload directly,
145146
but redirect to URL with proper origin isolation
146147
`,
147148
Request: Request().URL("{{url}}/ipfs/{{cid}}/", gatewayURL, CIDv1),
@@ -165,7 +166,8 @@ func TestGatewaySubdomains(t *testing.T) {
165166
{
166167
Name: "request for example.com/ipfs/{DirCID} redirects to subdomain",
167168
Hint: `
168-
subdomains should not return payload directly,
169+
path requests to gateways with subdomain support
170+
should not return payload directly,
169171
but redirect to URL with proper origin isolation
170172
`,
171173
Request: Request().URL("{{url}}/ipfs/{{cid}}/", gatewayURL, DirCID),

0 commit comments

Comments
 (0)