Switching the order of html/json in accepts call