Skip to content

Commit 81fc2f9

Browse files
committed
try using withDNSLinkContext
1 parent ada4de4 commit 81fc2f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gateway/hostname.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func WithHostname(c Config, api IPFSBackend, next http.Handler) http.HandlerFunc
8383
if !gw.NoDNSLink && hasDNSLinkRecord(r.Context(), api, host) {
8484
// rewrite path and handle as DNSLink
8585
r.URL.Path = "/ipns/" + stripPort(host) + r.URL.Path
86-
next.ServeHTTP(w, withSubdomainContext(r, host))
86+
next.ServeHTTP(w, withDNSLinkContext(r, host))
8787
return
8888
}
8989

0 commit comments

Comments
 (0)