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

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

Issue 575613003: Docserver: Gitiles auth and cron refactoring. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
Index: chrome/common/extensions/docs/server2/app_engine_handler.py
diff --git a/chrome/common/extensions/docs/server2/app_engine_handler.py b/chrome/common/extensions/docs/server2/app_engine_handler.py
index 8d6ebad51d14f4c609dcaaffd6640f3191b97465..9a0a678d5273609a8406ea6019e8fdcfe52c7eca 100644
--- a/chrome/common/extensions/docs/server2/app_engine_handler.py
+++ b/chrome/common/extensions/docs/server2/app_engine_handler.py
@@ -14,7 +14,13 @@ class AppEngineHandler(webapp2.RequestHandler):
internal Servlet architecture.
'''
+ def post(self):
+ self._HandleRequest()
+
def get(self):
+ self._HandleRequest()
+
+ def _HandleRequest(self):
profile_mode = self.request.get('profile')
if profile_mode:
import cProfile, pstats, StringIO
@@ -23,9 +29,13 @@ class AppEngineHandler(webapp2.RequestHandler):
try:
response = None
+ arguments = {}
+ for argument in self.request.arguments():
+ arguments[argument] = self.request.get(argument)
request = Request(self.request.path,
self.request.url[:-len(self.request.path)],
- self.request.headers)
+ self.request.headers,
+ arguments)
response = Handler(request).Get()
except Exception as e:
logging.exception(e)

Powered by Google App Engine
This is Rietveld 408576698