Skip to content

Commit

Permalink
Fix too many open files (close #5)
Browse files Browse the repository at this point in the history
  • Loading branch information
dwisiswant0 committed Apr 3, 2021
1 parent e3b61f2 commit 546f365
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions get.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ func (opt *options) get(url string) string {
if opt.Proxy != "" {
client.Transport, err = mubeng.Transport(opt.Proxy)
isError(err)

req.Header.Add("Connection", "close")
}

resp, err := client.Do(req)
Expand Down

0 comments on commit 546f365

Please sign in to comment.