Skip to content

Commit

Permalink
Update sitemap URLs for https
Browse files Browse the repository at this point in the history
  • Loading branch information
mhagander committed May 24, 2016
1 parent b1ae5f8 commit a126594
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pgweb/core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def robots(request):
Disallow: /message-id/raw/
Disallow: /message-id/flat/
Sitemap: http://www.postgresql.org/sitemap.xml
Sitemap: https://www.postgresql.org/sitemap.xml
""", content_type='text/plain')


Expand All @@ -148,7 +148,7 @@ def sitemap(request):
for p in get_all_pages_struct():
pages+=1
x.startElement('url', {})
x.add_xml_element('loc', 'http://www.postgresql.org/%s' % urllib.quote(p[0]))
x.add_xml_element('loc', 'https://www.postgresql.org/%s' % urllib.quote(p[0]))
if len(p) > 1 and p[1]:
x.add_xml_element('priority', unicode(p[1]))
if len(p) > 2 and p[2]:
Expand Down
2 changes: 1 addition & 1 deletion tools/search/crawler/lib/sitemapsite.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def __init__(self, hostname, dbconn, siteid, serverip):
def init_crawl(self):
# Fetch the sitemap. We ignore robots.txt in this case, and
# assume it's always under /sitemap.xml
u = urllib.urlopen("http://%s/sitemap.xml" % self.hostname)
u = urllib.urlopen("https://%s/sitemap.xml" % self.hostname)
p = SitemapParser()
p.parse(u)
u.close()
Expand Down

0 comments on commit a126594

Please sign in to comment.