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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Normal
    • 2017-03-27
    • Affects Version/s: None
    • Component/s: 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()?).

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

              Created:
              Updated:
              Resolved:

                Version Package
                2017-03-27