From 8e3ddca816d8ca169193c141e657b969ef7ad770 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 14 Nov 2010 13:53:58 -0500 Subject: [PATCH] http.ErrPersistEOF is a valid error response when reading. --- src/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.go b/src/server.go index 994d954..8c2df4b 100644 --- a/src/server.go +++ b/src/server.go @@ -120,7 +120,7 @@ func performProxy(url *http.URL, response http.ResponseWriter, origRequest *http } var proxyResponse *http.Response proxyResponse, err = client.Read() - if err != nil { + if err != http.ErrPersistEOF { return err } _, err = io.Copy(response, proxyResponse.Body) -- 2.43.5