2016-01-21 34 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

謝謝你的幫忙! –