Commit b780cb19 authored by Viacheslav Sukhovieiev's avatar Viacheslav Sukhovieiev
Browse files

fix(errors): add default Accept header value to error resolver

parent 3d935eaf
......@@ -29,7 +29,7 @@ ERROR_DICT = {
async def resolve_error_resp(msg, code, req: web):
if all([
'text/html' in req.headers.get('Accept'),
'text/html' in req.headers.get('Accept', ''),
code == 403,
req.method == hdrs.METH_GET,
req.path == '/api/auth/auction'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment