Commit 581c808b authored by Roque's avatar Roque

hateoas script: removing typos

parent 7611c6a6
......@@ -1229,8 +1229,8 @@ def calculateHateoas(is_portal=None, is_site_root=None, traversed_document=None,
return ""
elif mime_type != traversed_document.Base_handleAcceptHeader([mime_type]):
response.setStatus(406)
return ""
response.setStatus(406)
return ""
elif (mode == 'root') or (mode == 'traverse'):
##
......@@ -1434,9 +1434,9 @@ def calculateHateoas(is_portal=None, is_site_root=None, traversed_document=None,
##############
# XXX Custom slapos code
##############a
##############
if is_site_root:
result_dict['default_view'] = 'view'
REQUEST.set("X-HATEOAS-CACHE", 1)
......
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