2to3: urllib host
parent
9bc5b0c7f7
commit
2f542005d1
|
@ -181,8 +181,8 @@ class UAHandler(BaseHandler):
|
||||||
|
|
||||||
class AutoRefererHandler(BaseHandler):
|
class AutoRefererHandler(BaseHandler):
|
||||||
def http_request(self, req):
|
def http_request(self, req):
|
||||||
if req.get_host() != 'feeds.feedburner.com':
|
if req.host != 'feeds.feedburner.com':
|
||||||
req.add_unredirected_header('Referer', 'http://%s' % req.get_host())
|
req.add_unredirected_header('Referer', 'http://%s' % req.host)
|
||||||
return req
|
return req
|
||||||
|
|
||||||
https_request = http_request
|
https_request = http_request
|
||||||
|
|
Loading…
Reference in New Issue