Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
prozorro-sale
Prozorro Auth
Commits
b780cb19
Commit
b780cb19
authored
Feb 16, 2022
by
Viacheslav Sukhovieiev
Browse files
fix(errors): add default Accept header value to error resolver
parent
3d935eaf
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/prozorro_sale/auth_service/errors.py
View file @
b780cb19
...
...
@@ -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'
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment