Details

      Description

      Railo sends a Content-Type Header of "text/html" back when a CFC is called with or has the parameter returnformat="json".
      This should be "application/json", since some clients and webservices need a proper returnFormat to parse the result.

      It can be set with CFHEADER, but:

      • then, Railo sends always this header, even when different clients need different returnFormats,
      • and CFHEADER is not supported in CFSCRIPT.

        Gliffy Diagrams

          Attachments

          1. jsontest.zip
            0.8 kB
          2. jsontest2.zip
            0.8 kB
          3. ReturnFormatTest.cfc
            0.7 kB

            Activity

              People

              • Assignee:
                micstriit Michael Offner
                Reporter:
                louisbrauer Louis Brauer
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: