Skip to content

Commit

Permalink
update handle request timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
ochom committed Dec 8, 2024
1 parent fc607a0 commit c4c12ba
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions gttp/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ func Post(url string, headers M, body any, timeout ...time.Duration) (resp *Resp
return
}

req.Close = true
for k, v := range headers {
req.Header.Set(k, v)
}
Expand Down Expand Up @@ -79,7 +78,6 @@ func Get(url string, headers M, timeout ...time.Duration) (resp *Response, err e
return
}

req.Close = true
for k, v := range headers {
req.Header.Set(k, v)
}
Expand Down Expand Up @@ -109,7 +107,6 @@ func Custom(url, method string, headers M, body any, timeout ...time.Duration) (
return
}

req.Close = true
for k, v := range headers {
req.Header.Set(k, v)
}
Expand Down

0 comments on commit c4c12ba

Please sign in to comment.