Compare commits

..

No commits in common. "769c04685abd517a815d0e23b6e183e7f0c5f4bd" and "7d2168a014dc5972678f07d5bcd9d2b3fcda3859" have entirely different histories.

2 changed files with 2 additions and 1 deletions

View File

@ -12,7 +12,7 @@ import (
)
const (
VERSION string = "0.5.6"
VERSION string = "0.5.502"
DefaultUserAgent string = "Dodo/" + VERSION
ProxyCheckURL string = "https://www.google.com"
DefaultMethod string = "GET"

View File

@ -26,6 +26,7 @@ type Request struct {
func (r *Request) Send(ctx context.Context, timeout time.Duration) (*fasthttp.Response, error) {
client := r.getClient()
request := r.getRequest()
defer client.CloseIdleConnections()
defer fasthttp.ReleaseRequest(request)
response := fasthttp.AcquireResponse()