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

Anshum Gupta commented on SOLR-7405:
------------------------------------

+1 on not fixing this now for sure. 
It's a nice feature/convenience to have for people using _curl_ and we could 
note that somewhere in the ref guide e.g. say "Solr auto-detects the content 
type for curl and so it is not essential to specify the content type when using 
curl" but removing this from all examples would lead to information loss w.r.t 
to the ref guide. For the sake of ref-guide users, I think it's good to have 
the command as a super-set instead of a reduced version.
The only way I could think of removing all mentions of content type from the 
example curl commands is if we have a page that explains what to do when Solr 
asks for a content type, also explaining why is that the behavior. 

> Update ref guide curl examples to eliminate Content-Type
> --------------------------------------------------------
>
>                 Key: SOLR-7405
>                 URL: https://issues.apache.org/jira/browse/SOLR-7405
>             Project: Solr
>          Issue Type: Improvement
>          Components: documentation
>            Reporter: Hoss Man
>            Priority: Minor
>
> SOLR-7217 added a special work arround to solr to autodetect the correct 
> content-type if the user-agent indicates curl is in use and the content-type 
> specified is the curl default ("application/x-www-form-urlencoded")
> while this is certianly a nice to have convenience for people who forget to 
> specify a Content-Type when using curl, there was quite a bit of back and 
> forth on the ref guide TODO page about wether all example curl calls in the 
> ref guide should explicitly take advantage of this for brevity.
> I'm opening this issue in the interest of having a more structured place for 
> this discussion.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to