Correct spelling mistakes.
This commit is contained in:
parent
98567fe5a8
commit
cfc75b4f1a
|
@ -580,7 +580,7 @@ class Sanic:
|
||||||
response)
|
response)
|
||||||
except BaseException:
|
except BaseException:
|
||||||
error_logger.exception(
|
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
|
# pass the response to the correct callback
|
||||||
|
|
|
@ -59,7 +59,7 @@ def test_middleware_response_exception():
|
||||||
result = {'status_code': None}
|
result = {'status_code': None}
|
||||||
|
|
||||||
@app.middleware('response')
|
@app.middleware('response')
|
||||||
async def process_response(reqest, response):
|
async def process_response(request, response):
|
||||||
result['status_code'] = response.status
|
result['status_code'] = response.status
|
||||||
return response
|
return response
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user