root: use new is_json() method

This commit is contained in:
Frédéric Péters 2013-05-20 11:57:15 +02:00
parent 6084fafcfb
commit 8a2a071e8f
1 changed files with 1 additions and 1 deletions

View File

@ -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()