mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 18:37:45 +08:00
chore(gateway): document encoding fix
This commit is contained in:
parent
69f6e08d9d
commit
7ae6f6fa3e
@ -395,6 +395,10 @@ func (i *gatewayHandler) serveFile(w http.ResponseWriter, req *http.Request, nam
|
||||
return
|
||||
}
|
||||
}
|
||||
// Strip the encoding from the HTML Content-Type header and let the
|
||||
// browser figure it out.
|
||||
//
|
||||
// Fixes https://github.com/ipfs/go-ipfs/issues/2203
|
||||
if strings.HasPrefix(ctype, "text/html;") {
|
||||
ctype = "text/html"
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user