diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/http.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/http.go b/src/http.go index 8243500..b247dbb 100644 --- a/src/http.go +++ b/src/http.go @@ -142,6 +142,9 @@ func HTTPMethodWithOpts(method string, url string, opts *HTTPOptionalParams) (ht return nil, nil, &HTTPRequestCreateError{URL: url, Err: reqErr} } + // See https://stackoverflow.com/questions/17714494/golang-http-request-results-in-eof-errors-when-making-multiple-requests-successi + req.Close = true + // Make sure the headers contain all the parameters httpOptionalHeaders(req, opts) |
