[ 
https://issues.apache.org/jira/browse/MARMOTTA-591?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14313811#comment-14313811
 ] 

ASF subversion and git services commented on MARMOTTA-591:
----------------------------------------------------------

Commit b3e88dc5548dcd908e8a2d0e95ffc9603647775d in marmotta's branch 
refs/heads/develop from [~wikier]
[ https://git-wip-us.apache.org/repos/asf?p=marmotta.git;h=b3e88dc ]

MARMOTTA-591: accepted patch by @schlegel to allow multiple accept headers in 
sparql endpoints. This closes #10.


> 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
>            Assignee: Sergio Fernández
>            Priority: Minor
>         Attachments: marmotta_multiple_http_header.patch
>
>   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)

Reply via email to