[
https://issues.apache.org/jira/browse/MARMOTTA-591?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14312341#comment-14312341
]
ASF GitHub Bot commented on MARMOTTA-591:
-----------------------------------------
GitHub user schlegel opened a pull request:
https://github.com/apache/marmotta/pull/10
Allow multiple accept headers in SPARQL web service MARMOTTA-591
The current implementation only supports single HTTP accept headers with
comma separated values. RFC 2616 also allows multiple HTTP headers (e.g.
ACCEPT).
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/schlegel/marmotta develop
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/marmotta/pull/10.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #10
----
commit 73491437505fe9c05955730bd620f58066f3d101
Author: Kai Schlegel <[email protected]>
Date: 2015-02-09T15:10:26Z
Allow multiple accept headers in SPARQL web service
----
> Multiple ACCEPT Headers
> -----------------------
>
> Key: MARMOTTA-591
> URL: https://issues.apache.org/jira/browse/MARMOTTA-591
> Project: Marmotta
> Issue Type: Bug
> Components: Web Services
> Affects Versions: 3.3.0
> Reporter: Kai Schlegel
> Priority: Minor
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)