Ticket #2701 (closed Patches: fixed)

Opened 5 years ago

Last modified 5 years ago

Change JSON response Content-type to application/json

Reported by: kRutOn Assigned to: gregmac
Priority: minor Milestone: Undetermined
Component: Core - Module Admin Version: 2.4-branch
Keywords: JSON AJAX Cc:
Confirmation: Confirmed Distro:
Backend Engine: All Distro Ver:
Backend Ver: SVN Revision (if applicable):

Description

Some proxies such as Apache using mod_proxy_html mangle HTML which causes JSON responses to fail currently. They are marked as "Content-type: text/html" but changing that to its correct MIME type "Content-type: application/json" lets the JSON responses through.

Attachments

freepbx-2.4.0-json-fix.patch (2.7 kB) - added by kRutOn on 02/22/08 16:35:16.
Changes Content-type for JSON responses to application/json

Change History

02/22/08 16:35:16 changed by kRutOn

  • attachment freepbx-2.4.0-json-fix.patch added.

Changes Content-type for JSON responses to application/json

06/05/08 14:18:31 changed by gregmac

  • status changed from new to assigned.
  • confirmation changed from Unreviewed to Confirmed.

06/14/08 23:26:04 changed by gregmac

  • status changed from assigned to closed.
  • resolution set to fixed.

Added in r5773, r5774, r5775