CRM-15674 Content type for json results should be application/json

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.5.4
    • Fix Version/s: 4.6
    • Component/s: CiviCRM API
    • Labels:
    • Documentation Required?:
      None

      Description

      According to http://stackoverflow.com/questions/477816/what-is-the-correct-json-content-type (which refers to http://www.ietf.org/rfc/rfc4627.txt), the content type for json is application/json. The API serves it as text/javascript.

      This is probably not very critical. But it seems that some development frameworks that expect json results don't like text/javascript.

        Attachments

          Activity

          [CRM-15674] Content type for json results should be application/json
          Johan Vervloet added a comment -
          Coleman Watts added a comment -

          Thanks for the PR, this allows us to get the fix into the next major release

            People

            • Assignee:
              Coleman Watts
              Reporter:
              Johan Vervloet

              Dates

              • Created:
                Updated:
                Resolved: