mirror of
https://github.com/aykhans/dodo.git
synced 2025-06-07 14:11:51 +00:00
Compare commits
No commits in common. "769c04685abd517a815d0e23b6e183e7f0c5f4bd" and "7d2168a014dc5972678f07d5bcd9d2b3fcda3859" have entirely different histories.
769c04685a
...
7d2168a014
@ -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"
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user