Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. 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

            People

            • Assignee:
              colemanw Coleman Watts
              Reporter:
              johanv Johan Vervloet
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: