From c9a4af218efb9a6c0f405133e45c38ae8f20ff03 Mon Sep 17 00:00:00 2001 From: Ruud Date: Fri, 14 Jun 2013 13:54:01 +0200 Subject: [PATCH] Send port with referer. fix #1827 --- couchpotato/core/plugins/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/core/plugins/base.py b/couchpotato/core/plugins/base.py index 08a5886..bb154f5 100644 --- a/couchpotato/core/plugins/base.py +++ b/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)