Spring Roo
  1. Spring Roo
  2. ROO-2965

JSON responses have Content-Type "application/text" instead of "application/json"

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Complete
    • Affects Version/s: 1.2.0.RC1
    • Fix Version/s: 1.2.0.RELEASE
    • Component/s: WEB MVC
    • Labels:
      None

      Description

      According to section 6 of RFC 4627, the correct MIME media type for JSON responses is "application/json", however the JSON-generating methods created by Roo set the HTTP "Content-Type" header to "application/text".

        Activity

        Hide
        Andrew Swan added a comment -

        Fixed as Git commit f5d23bd382ded263a25c3751bdb62c6950d20a06.

        Show
        Andrew Swan added a comment - Fixed as Git commit f5d23bd382ded263a25c3751bdb62c6950d20a06 .
        Hide
        Andrew Swan added a comment -

        If for some reason anyone wants to be able to use the previous content type, please log an improvement ticket asking for the @RooWebJson annotation to have an optional "contentType" attribute that allows the content type to be specified by the user.

        Show
        Andrew Swan added a comment - If for some reason anyone wants to be able to use the previous content type, please log an improvement ticket asking for the @RooWebJson annotation to have an optional " contentType " attribute that allows the content type to be specified by the user.

          People

          • Assignee:
            Andrew Swan
            Reporter:
            Andrew Swan
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: