mirror of
https://github.com/terorie/od-database-crawler.git
synced 2025-04-19 02:16:43 +00:00
Fix segfault (thanks Pikami)
This commit is contained in:
parent
9d5f549774
commit
b18b70f798
@ -184,5 +184,5 @@ type ServerTripper struct{}
|
|||||||
|
|
||||||
func (t *ServerTripper) RoundTrip(req *http.Request) (res *http.Response, err error) {
|
func (t *ServerTripper) RoundTrip(req *http.Request) (res *http.Response, err error) {
|
||||||
req.Header.Set("User-Agent", serverUserAgent)
|
req.Header.Set("User-Agent", serverUserAgent)
|
||||||
return http.DefaultClient.Transport.RoundTrip(req)
|
return http.DefaultTransport.RoundTrip(req)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user