mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-23 00:38:33 +02:00
security: drop service headers
This commit is contained in:
@@ -380,6 +380,8 @@ func (p *ReverseProxy) handler(rw http.ResponseWriter, req *http.Request) {
|
||||
}()
|
||||
}
|
||||
|
||||
httpheaders.RemoveServiceHeaders(res.Header)
|
||||
|
||||
// Deal with 101 Switching Protocols responses: (WebSocket, h2c, etc)
|
||||
if res.StatusCode == http.StatusSwitchingProtocols {
|
||||
if !p.modifyResponse(rw, res, req, outreq) {
|
||||
|
||||
Reference in New Issue
Block a user