add gzip encoding, ignore some headers that might break requests

This commit is contained in:
sigma67 2021-04-28 16:27:57 +02:00
commit f9d317bd0d
No known key found for this signature in database
GPG key ID: 1545A01D4474BAF0
4 changed files with 13 additions and 6 deletions

View file

@ -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"
}