Skip to content

Commit

Permalink
Merge branch 'release/v0.2.13'
Browse files Browse the repository at this point in the history
  • Loading branch information
parnurzeal committed Nov 21, 2015
2 parents cd34fd7 + 2319bc7 commit b64673b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
Changelog
=========

v0.2.13 (2015-11-21)

Features
* Add DisableTransportSwap to stop gorequest from modifying Transport settings.
Note that this will effect many functions that modify gorequest's
tranport. (So, use with caution.) (Bug #47, PR #59 by @piotrmiskiewicz)


v0.2.12 (2015-11-21)

Feature
Features
* Add SetCurlCommand for printing comparable CURL command of the request
(PR #60 by @QuentinPerez)

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ If you find any improvement or issue you want to fix, feel free to send me a pul

Thanks to all contributors thus far:

@kemadz, @austinov, @figlief, @dickeyxxx, @killix, @jaytaylor, @na-ga, @dafang, @alaingilbert, @6david9, @pencil001, @QuentinPerez, and @smallnest
@kemadz, @austinov, @figlief, @dickeyxxx, @killix, @jaytaylor, @na-ga, @dafang, @alaingilbert, @6david9, @pencil001, @QuentinPerez, @smallnest, and @piotrmiskiewicz.

Also, co-maintainer is needed here. If anyone is interested, please email me (parnurzeal at gmail.com)

Expand Down
6 changes: 5 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ type SuperAgent struct {
logger *log.Logger
}

var DisableTransportSwap = false

// Used to create a new SuperAgent object.
func New() *SuperAgent {
cookiejarOptions := cookiejar.Options{
Expand Down Expand Up @@ -700,7 +702,9 @@ func (s *SuperAgent) EndBytes(callback ...func(response Response, body []byte, e
}

// Set Transport
s.Client.Transport = s.Transport
if !DisableTransportSwap {
s.Client.Transport = s.Transport
}

// Log details of this request
if s.Debug {
Expand Down

0 comments on commit b64673b

Please sign in to comment.