Skip to content

Commit

Permalink
refactor: remove redirect request headers implementation because this
Browse files Browse the repository at this point in the history
is implemented on default lib
  • Loading branch information
Bruno Barbosa committed Feb 1, 2019
1 parent bcd34c9 commit 3dcc108
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions goreq.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,13 +341,6 @@ func (r Request) Do() (*Response, error) {

resUri = req.URL.String()

//By default Golang will not redirect request headers
// https://code.google.com/p/go/issues/detail?id=4800&q=request%20header
if r.RedirectHeaders {
for key, val := range via[0].Header {
req.Header[key] = val
}
}
return nil
}

Expand Down

0 comments on commit 3dcc108

Please sign in to comment.