follow HTTP redirects, accept br encoding

This commit is contained in:
Jannis R 2019-06-24 18:26:11 +02:00
parent 1e0182f8f6
commit d0f7ca1b6c
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5

View file

@ -39,10 +39,11 @@ const request = (profile, userAgent, opt, data) => {
body: JSON.stringify(body), body: JSON.stringify(body),
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
'Accept-Encoding': 'gzip, deflate', 'Accept-Encoding': 'gzip, br, deflate',
'Accept': 'application/json', 'Accept': 'application/json',
'user-agent': randomizeUserAgent(userAgent) 'user-agent': randomizeUserAgent(userAgent)
}, },
redirect: 'follow',
query: {} query: {}
}) })