From e3a62620121d0b36ce478726e6ac628736dbd063 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Sun, 16 Oct 2016 12:28:24 +1100 Subject: [PATCH] Fixed typos --- docs/middleware.md | 2 +- sanic/exceptions.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/middleware.md b/docs/middleware.md index 1954a0cd..644af5a6 100644 --- a/docs/middleware.md +++ b/docs/middleware.md @@ -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. diff --git a/sanic/exceptions.py b/sanic/exceptions.py index b459f47b..b532d15f 100644 --- a/sanic/exceptions.py +++ b/sanic/exceptions.py @@ -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