Uploaded image for project: 'Marmotta'
  1. Marmotta
  2. MARMOTTA-591

Multiple ACCEPT Headers

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.3.0
    • Fix Version/s: 3.4.0
    • Component/s: Web Services
    • Labels:
      None

      Description

      The current implementation only supports single HTTP accept headers with comma separated values. Following the RFC 2616 (http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2 ) multiple (accept) headers are allowed as well.

      This behaviour is implemented for example by OpenRDF Alibaba:

      POST /marmotta/sparql/select HTTP/1.1
      Content-Type: application/x-www-form-urlencoded; charset=utf-8
      Accept: application/x-binary-rdf-results-table;q=0.8
      Accept: application/sparql-results+xml
      Accept: application/xml
      ...

      The current implementation returns a HTTP 415 (Unsupported Media Type
      ) because only the format application/x-binary-rdf-results-table is considered.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                wikier Sergio Fernández
                Reporter:
                schlegel Kai Schlegel
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified