Skip to content

Commit bad6df2

Browse files
authored
Merge pull request #24 from mszuyev/master
Update negotiator.go
2 parents 4a21cbd + c30962d commit bad6df2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

negotiator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ func (l Negotiator) RoundTrip(req *http.Request) (res *http.Response, err error)
137137

138138
req.Body = ioutil.NopCloser(bytes.NewReader(body.Bytes()))
139139

140-
res, err = rt.RoundTrip(req)
140+
return rt.RoundTrip(req)
141141
}
142142

143143
return res, err

0 commit comments

Comments
 (0)