mirror of
https://github.com/aykhans/dodo.git
synced 2025-04-21 11:16:47 +00:00
Compare commits
3 Commits
7d2168a014
...
769c04685a
Author | SHA1 | Date | |
---|---|---|---|
769c04685a | |||
e43378a9a4 | |||
e29e4f1bc6 |
@ -12,7 +12,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
VERSION string = "0.5.502"
|
VERSION string = "0.5.6"
|
||||||
DefaultUserAgent string = "Dodo/" + VERSION
|
DefaultUserAgent string = "Dodo/" + VERSION
|
||||||
ProxyCheckURL string = "https://www.google.com"
|
ProxyCheckURL string = "https://www.google.com"
|
||||||
DefaultMethod string = "GET"
|
DefaultMethod string = "GET"
|
||||||
|
@ -26,7 +26,6 @@ type Request struct {
|
|||||||
func (r *Request) Send(ctx context.Context, timeout time.Duration) (*fasthttp.Response, error) {
|
func (r *Request) Send(ctx context.Context, timeout time.Duration) (*fasthttp.Response, error) {
|
||||||
client := r.getClient()
|
client := r.getClient()
|
||||||
request := r.getRequest()
|
request := r.getRequest()
|
||||||
defer client.CloseIdleConnections()
|
|
||||||
defer fasthttp.ReleaseRequest(request)
|
defer fasthttp.ReleaseRequest(request)
|
||||||
|
|
||||||
response := fasthttp.AcquireResponse()
|
response := fasthttp.AcquireResponse()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user