def prepare_request_headers(self, headers=None):
    headers = (headers or {})
    headers.update(self.headers)
    if self.userAgent:
        if (type(self.userAgent) is str):
            headers.update({'User-Agent': self.userAgent})
        elif ((type(self.userAgent) is dict) and ('User-Agent' in self.userAgent)):
            headers.update(self.userAgent)
    if self.proxy:
        headers.update({'Origin': self.origin})
    headers.update({'Accept-Encoding': 'gzip, deflate'})
    return headers
def prepare_request_headers(self, headers=None):
    headers = (headers or {})
    headers.update(self.headers)
    if self.userAgent:
        if (type(self.userAgent) is str):
            headers.update({'User-Agent': self.userAgent})
        elif ((type(self.userAgent) is dict) and ('User-Agent' in self.userAgent)):
            headers.update(self.userAgent)
    if self.proxy:
        headers.update({'Origin': self.origin})
    headers.update({'Accept-Encoding': 'gzip, deflate'})
    return headers