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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2017-03-27
    • None
    • Web service
    • None

      /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()?).

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

              Created:
              Updated:
              Resolved:

                Version Package
                2017-03-27