Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #6508 -- Fixed `add_domain` function to also work with https fe…

…ed URLs, thanks Uninen.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit d72ce4f20c0fca12c2c70b130fdb63da57da28ab 1 parent 9fcaf35
@gdub gdub authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/contrib/syndication/
2  django/contrib/syndication/
@@ -6,7 +6,7 @@
from django.conf import settings
def add_domain(domain, url):
- if not url.startswith('http://'):
+ if not (url.startswith('http://') or url.startswith('https://')):
# 'url' must already be ASCII and URL-quoted, so no need for encoding
# conversions here.
url = iri_to_uri(u'http://%s%s' % (domain, url))
Please sign in to comment.
Something went wrong with that request. Please try again.