[mod] update User Agent

git-svn-id: file:///srv/svn/repo/yukari/trunk@111 f3bd38d9-da89-464d-a02a-eb04e43141b5
This commit is contained in:
alex 2020-07-13 17:36:21 +00:00
parent dea5fae64b
commit fb075c6bf2

View File

@ -315,7 +315,7 @@ func (p *Proxy) RequestHandler(ctx *fasthttp.RequestCtx) {
} }
req.SetRequestURI(requestURIStr) req.SetRequestURI(requestURIStr)
req.Header.SetUserAgentBytes([]byte("Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0")) req.Header.SetUserAgentBytes([]byte("Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0"))
resp := fasthttp.AcquireResponse() resp := fasthttp.AcquireResponse()
defer fasthttp.ReleaseResponse(resp) defer fasthttp.ReleaseResponse(resp)