GET operation ignored 'type' query parameter

example: GET localhost/newDir?type=json, 'type' was ignored the the response type was always 'html', not 'json'.