Bob Li
Bob Li
As issue #567 described. Copy the body buffer by buffer.Write to fix body mismatch with origin request when 307 or 308 redirect.
# Summary Resty [saved the request body's snapshot](https://github.com/go-resty/resty/blob/master/middleware.go#L521) for resending request with original HTTP method and body when http redirect such as 307 or 308 returned. Then in [http.Client.do](https://github.com/golang/go/blob/master/src/net/http/client.go#L661), golang...

1. If *defer client.Close()* register before *if err != nil {*, panic will occur when disque is unable to access. 1. *pool.Get()* should retry after interval when *err != nil*