Fix unannonced trailers problem when body is empty
This commit is contained in:
parent
1f7a4174ba
commit
a0b9c0d007
2 changed files with 11 additions and 1 deletions
10
vendor/github.com/vulcand/oxy/forward/fwd.go
generated
vendored
10
vendor/github.com/vulcand/oxy/forward/fwd.go
generated
vendored
|
@ -548,6 +548,16 @@ func (f *httpForwarder) serveHTTP(w http.ResponseWriter, inReq *http.Request, ct
|
|||
} else {
|
||||
revproxy.ServeHTTP(w, outReq)
|
||||
}
|
||||
|
||||
for key := range w.Header() {
|
||||
if strings.HasPrefix(key, http.TrailerPrefix) {
|
||||
if fl, ok := w.(http.Flusher); ok {
|
||||
fl.Flush()
|
||||
}
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// IsWebsocketRequest determines if the specified HTTP request is a
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue