Browse Source

Send port with referer. fix #1827

pull/1844/head
Ruud 12 years ago
parent
commit
c9a4af218e
  1. 2
      couchpotato/core/plugins/base.py

2
couchpotato/core/plugins/base.py

@ -108,7 +108,7 @@ class Plugin(object):
# Fill in some headers
parsed_url = urlparse(url)
host = parsed_url.hostname
host = '%s%s' % (parsed_url.hostname, (':' + str(parsed_url.port) if parsed_url.port else ''))
headers['Referer'] = headers.get('Referer', '%s://%s' % (parsed_url.scheme, host))
headers['Host'] = headers.get('Host', host)

Loading…
Cancel
Save