aboutsummaryrefslogtreecommitdiff
path: root/app/handlers/base.py
diff options
context:
space:
mode:
authorMilo Casagrande <milo.casagrande@linaro.org>2014-04-04 18:09:03 +0200
committerMilo Casagrande <milo.casagrande@linaro.org>2014-04-04 18:09:03 +0200
commit2d05ce07fe038c669a104d70529d4f57eabb1f09 (patch)
tree496746685dbf85e8acb87219f628b3005d995e65 /app/handlers/base.py
parent5ae2598cc8ccdef87393e7207f053f24a350d432 (diff)
Add doc string.
Diffstat (limited to 'app/handlers/base.py')
-rw-r--r--app/handlers/base.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/handlers/base.py b/app/handlers/base.py
index fd6c70f..7deb48f 100644
--- a/app/handlers/base.py
+++ b/app/handlers/base.py
@@ -155,6 +155,7 @@ class BaseHandler(RequestHandler):
self.finish()
def _check_content_type(self):
+ """Handy method to check the content type of the request body."""
if self.request.headers['Content-Type'] != self.accepted_content_type:
self.send_error(status_code=415)