add gzip encoding, ignore some headers that might break requests
This commit is contained in:
parent
650f0a220d
commit
f9d317bd0d
4 changed files with 13 additions and 6 deletions
|
|
@ -48,11 +48,13 @@ def prepare_order_params(order):
|
|||
|
||||
def initialize_headers():
|
||||
return {
|
||||
"User-Agent": USER_AGENT,
|
||||
"Accept": "*/*",
|
||||
"Content-Type": "application/json",
|
||||
"user-agent": USER_AGENT,
|
||||
"accept": "*/*",
|
||||
"accept-encoding": "gzip, deflate",
|
||||
"content-type": "application/json",
|
||||
"content-encoding": "gzip",
|
||||
"origin": YTM_DOMAIN,
|
||||
"X-Goog-AuthUser": "0"
|
||||
"x-goog-authuser": "0"
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue