mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 15:19:35 +02:00
follow HTTP redirects, accept br encoding
This commit is contained in:
parent
1e0182f8f6
commit
d0f7ca1b6c
1 changed files with 2 additions and 1 deletions
|
@ -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: {}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue