root: use new is_json() method
This commit is contained in:
parent
6084fafcfb
commit
8a2a071e8f
|
@ -843,7 +843,7 @@ class AlternateRootDirectory(OldRootDirectory):
|
|||
return FormsRootDirectory().categories()
|
||||
|
||||
def _q_index [html] (self):
|
||||
if get_request().get_header(str('Accept'), '') == 'application/json':
|
||||
if get_request().is_json():
|
||||
return FormsRootDirectory().json()
|
||||
|
||||
root_url = get_publisher().get_root_url()
|
||||
|
|
Reference in New Issue