1
0
Fork 0

We need to flush the end of the body when retry is streamed

This commit is contained in:
SALLEYRON Julien 2018-01-02 16:02:03 +01:00 committed by Traefiker
parent 23c1a9ca8e
commit 3e13ebec93
2 changed files with 19 additions and 0 deletions

View file

@ -56,6 +56,7 @@ func (retry *Retry) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
// It's a stream request and the body gets already sent to the client.
// Therefore we should not send the response a second time.
if recorder.streamingResponseStarted {
recorder.Flush()
break
}