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

ASF subversion and git services commented on SOLR-10998:
--------------------------------------------------------

Commit 9598db29bbd2d3092ab60ba5c134dd9904cf9897 in solr's branch 
refs/heads/branch_9x from Jason Gerlowski
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=9598db29bbd ]

SOLR-10998: Obey 'Accept' header in v2 APIs (#3262)

'wt' takes precedence if specified for now, if not provided Solr
(through our use of Jersey) will pick a response format in keeping with
the specified 'Accept' header.

JSON responses remains the "default" if neither 'wt' nor an "Accept"
header are specified.

> Support "Accept" request header as alternative to "wt" parameter
> ----------------------------------------------------------------
>
>                 Key: SOLR-10998
>                 URL: https://issues.apache.org/jira/browse/SOLR-10998
>             Project: Solr
>          Issue Type: Improvement
>          Components: Server
>            Reporter: Jan Høydahl
>            Priority: Major
>              Labels: http-headers, pull-request-available, standards
>          Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> Spinoff from 
> [email|https://lists.apache.org/thread.html/b4ec90b01bc075a98947e77b0a683308f760221dccb11be5819d1601@%3Cdev.lucene.apache.org%3E]
> Advertises which content types, expressed as MIME types, the client is able 
> to understand 
> [https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept]
> Could replace or at least be an alternative to “wt”. Examples:
> Accept: application/xml
> Accept: text/csv
> Issue: Most browsers sends a long accept header, typically 
> application/xml,text/html, {{\*/\*}} , and now that json is default for Solr, 
> we’d need to serve JSON if the accept header includes “\*/\*"



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to