Uploaded image for project: '[Read Only] - Addon Channel Manager'
  1. [Read Only] - Addon Channel Manager
  2. CHANNELMGR-1553

URL generation endpoint returns plain text, but Content-Type header is "application/json"

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • 5.2.0
    • 5.2.0
    • None

    Description

      Calling the content/slugs endpoint as described in CHANNELMGR-1483, the endpoint works and returns the expected result.

      However, since the response header "Content-Type" indicates "application/json", AngularJS' $http service expects a JSON string and tries to parse it. This causes an error.

      To fix this, the Content-Type header should be set to "text/plain".

      HTTP/1.1 200
      Date: Fri, 27 Oct 2017 10:35:19 GMT
      Content-Type: application/json
      Content-Length: 13
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            aweinberger Ariel Weinberger (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: