Fixed pretty_print bug that was disabling users from turning pretty print off if the api.php page used API::set_pretty_print(true) and changed headers from outputting text/javascript to application/json