Commit 419b4041 authored by Romain Courteaud's avatar Romain Courteaud

[erp5_hal_json_style] No accept header means client is ready to receive any content type

parent c5027fb7
...@@ -3,7 +3,7 @@ if REQUEST is not None: ...@@ -3,7 +3,7 @@ if REQUEST is not None:
raise Unauthorized raise Unauthorized
result = None result = None
accept = context.Base_getRequestHeader('Accept', default='') accept = context.Base_getRequestHeader('Accept', default='*/*')
for accepted_type in accepted_type_list: for accepted_type in accepted_type_list:
if accepted_type in accept: if accepted_type in accept:
# XXX Really simple and stupid matching. # XXX Really simple and stupid matching.
......
Markdown is supported
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