Skip to content

Commit

Permalink
try using withDNSLinkContext
Browse files Browse the repository at this point in the history
  • Loading branch information
hacdias committed Apr 6, 2023
1 parent ada4de4 commit 81fc2f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gateway/hostname.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func WithHostname(c Config, api IPFSBackend, next http.Handler) http.HandlerFunc
if !gw.NoDNSLink && hasDNSLinkRecord(r.Context(), api, host) {
// rewrite path and handle as DNSLink
r.URL.Path = "/ipns/" + stripPort(host) + r.URL.Path
next.ServeHTTP(w, withSubdomainContext(r, host))
next.ServeHTTP(w, withDNSLinkContext(r, host))
return
}

Expand Down

0 comments on commit 81fc2f9

Please sign in to comment.