Version 0.7.15
This commit is contained in:
1 parent
3a5576b350
commit
ffc0e81556
5 files changed
+23
-3
No files matched your search
@@ -88,7 +88,12 @@ class RequestHandler(BaseHTTPRequestHandler):
|
||||
pos = path.find('=')
|
||||
url = path[pos+1:]
|
||||
LOG('url: {}'.format(url))
|
||||
response = session.get(url, allow_redirects=True)
|
||||
#LOG('request headers: {}'.format(self.headers))
|
||||
additional_headers = {}
|
||||
if 'x-tcdn-token' in self.headers:
|
||||
additional_headers['x-tcdn-token'] = self.headers['x-tcdn-token']
|
||||
#LOG('additional_headers: {}'.format(additional_headers))
|
||||
response = session.get(url, allow_redirects=True, headers=additional_headers)
|
||||
LOG('headers: {}'.format(response.headers))
|
||||
baseurl = os.path.dirname(response.url)
|
||||
LOG('baseurl: {}'.format(baseurl))
|
||||
|
||||
Reference in new issue
Block a user