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

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

Issue 15009006: Docserver: refactor Servlet, ObjectStore, and ServerInstance architecture to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix example zipper Created 7 years, 7 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
Index: chrome/common/extensions/docs/server2/servlet.py
diff --git a/chrome/common/extensions/docs/server2/servlet.py b/chrome/common/extensions/docs/server2/servlet.py
index 6c048a03f984b67b374ca74be4d9df8fa2f6d62d..cc64351c68f03a891af3e8fb8d801bc163477152 100644
--- a/chrome/common/extensions/docs/server2/servlet.py
+++ b/chrome/common/extensions/docs/server2/servlet.py
@@ -5,8 +5,10 @@
class Request(object):
'''Request data.
'''
- def __init__(self, path, headers):
- self.path = path
+ def __init__(self, path, headers=None):
+ self.path = path.lstrip('/')
+ if headers is None:
+ headers = {}
self.headers = headers
class _ContentBuilder(object):

Powered by Google App Engine
This is Rietveld 408576698