2016-01-21 36 views

回答

3

您将需要继承HttpDispatch并重新实​​现http_headers财产法。该酒店用于HttpDispatch

class CustomHttpDispatch(HttpDispatch): 

@property 
def http_headers(self): 
    headers = { 
     'User-Agent': self.user_agent, 
     'Authorization': 'XXX'} 

    return headers 
+0

谢谢你的帮忙! –