Uploaded image for project: 'MusicBrainz Server'
  1. MusicBrainz Server
  2. MBS-9258

Web service search requests don't pass Accept: header to search servlet

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2017-03-27
    • Component/s: Web service
    • Labels:
      None

      Description

      /ws/2 requests generally support two ways of requesting JSON output: either fmt=json or setting the Accept header to application/json

      However, setting Accept has no effect for search requests - XML is returned.

      This seems to be down to the various xxx_search() methods not mapping the Accept header to a fmt value (could possible also be done by MusicBrainz::Server::ControllerBase::WS::2::_search()?).

        Attachments

          Activity

            People

            • Assignee:
              zastai Tim Van Holder
              Reporter:
              zastai Tim Van Holder
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: