Skip to content
Permalink
Browse files

Close the response body (#35)

It's the callers' responsibility to close the response body. It's needed to use keep-alive for example
  • Loading branch information...
folbricht authored and sqs committed Jan 13, 2017
1 parent b800c96 commit 3da7d00aac9c68d0a04f768e23c4cfee60404981
Showing with 1 addition and 0 deletions.
  1. +1 −0 remote.go
@@ -131,6 +131,7 @@ func (wd *remoteWebDriver) execute(method, url string, data []byte) (buf []byte,
if err != nil {
return nil, err
}
defer res.Body.Close()

if Trace {
if dump, err := httputil.DumpResponse(res, true); err == nil && Log != nil {

0 comments on commit 3da7d00

Please sign in to comment.
You can’t perform that action at this time.