Merge pull request #26 from radarhere/master

Fixed typos
This commit is contained in:
Channel Cat 2016-10-16 00:53:59 -07:00 committed by GitHub
commit 41a1a72a95
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
# Middleware
Middleware can be executed before or after requests. It is executed in the order it was registered. If middleware return a reponse object, the request will stop processing and a response will be returned.
Middleware can be executed before or after requests. It is executed in the order it was registered. If middleware return a response object, the request will stop processing and a response will be returned.
Middleware is registered via the middleware decorator, and can either be added as 'request' or 'response' middleware, based on the argument provided in the decorator. Response middleware receives both the request and the response as arguments.

View File

@ -33,7 +33,7 @@ class Handler:
def response(self, request, exception):
"""
Fetches and executes an exception handler and returns a reponse object
Fetches and executes an exception handler and returns a response object
:param request: Request
:param exception: Exception to handle
:return: Response object