def make_headers(self, headers=None, cookies=None):
headers = CaseInsensitiveDict(
isinstance(headers, dict) and headers or {})
if 'Content-Type' not in headers:
headers['Content-Type'] = 'application/json'
if self.oauth_token:
headers['Authorization'] = 'oauth2: {}'.format(self.oauth_token)
return dict(headers)
评论列表
文章目录