Index: chrome/common/extensions/docs/server/main.py |
diff --git a/chrome/common/extensions/docs/server/main.py b/chrome/common/extensions/docs/server/main.py |
index 382ada49665eabdbbd8b61620272db3a41ad21e1..2c9595c62565af9b88758795649b702f286722e2 100755 |
--- a/chrome/common/extensions/docs/server/main.py |
+++ b/chrome/common/extensions/docs/server/main.py |
@@ -172,7 +172,11 @@ class MainPage(webapp.RequestHandler): |
def redirectDomain(self): |
- if (self.request.url.startswith('http://code.google.com')): |
+ if (self.request.url.startswith(('http://code.google.com', |
+ 'https://code.google.com'))): |
+ # switch to https if necessary |
+ if (self.request.url.startswith('https'): |
+ CHROME_DOMAIN_URL.replace('http', 'https', 1) |
Aaron Boodman
2012/08/15 00:15:29
You need to store the result in a variable. Someth
|
self.path.pop(0) # 'chrome' |
for channel in ['dev', 'beta', 'stable', 'trunk']: |
if channel in self.path: |