Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Unified Diff: chrome/common/extensions/docs/server2/server_instance.py

Issue 10911301: Extensions Docs Server: 404 on URLs like developer.chrome.com/extensions/storage (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/docs/server2/server_instance.py
diff --git a/chrome/common/extensions/docs/server2/server_instance.py b/chrome/common/extensions/docs/server2/server_instance.py
index 22c15c0cc672fca13708442b782699b14a08f6bd..469aa0a53a0373f12635c0d45e4a6e61c6b77a65 100644
--- a/chrome/common/extensions/docs/server2/server_instance.py
+++ b/chrome/common/extensions/docs/server2/server_instance.py
@@ -40,6 +40,7 @@ class ServerInstance(object):
# TODO(cduvall): bundle up all the request-scoped data into a single object.
templates = self._template_data_source_factory.Create(request, path)
+ content = None
if fnmatch(path, 'extensions/examples/*.zip'):
content = self._example_zipper.Create(
path[len('extensions/'):-len('.zip')])
@@ -50,7 +51,7 @@ class ServerInstance(object):
response.headers['content-type'] = 'text/plain'
elif path.startswith('static/'):
content = self._FetchStaticResource(path, response)
- else:
+ elif path.endswith('.html'):
content = templates.Render(path)
response.headers['x-frame-options'] = 'sameorigin'
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698