Merge pull request #1021 from EdwardBetts/spelling

Correct spelling mistakes.
This commit is contained in:
Raphael Deem 2017-11-16 16:26:40 -08:00 committed by GitHub
commit 820d8c7bf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -580,7 +580,7 @@ class Sanic:
response)
except BaseException:
error_logger.exception(
'Exception occured in one of response middleware handlers'
'Exception occurred in one of response middleware handlers'
)
# pass the response to the correct callback

View File

@ -59,7 +59,7 @@ def test_middleware_response_exception():
result = {'status_code': None}
@app.middleware('response')
async def process_response(reqest, response):
async def process_response(request, response):
result['status_code'] = response.status
return response