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

Robert Muir commented on SOLR-5517:
-----------------------------------

I disagree that the http spec says unknown content-type should be 
application/octet stream. It does not really say this, you have to read it all 
in context.

HTTP: (discussing content-type in general, and not POST in particular)
{quote}
If and only if the media type is not given by a Content-Type field, the 
recipient MAY attempt to guess the media type via inspection of its content 
and/or the name extension(s) of the URL used to identify the resource. *If the 
media type remains unknown*, the recipient SHOULD treat it as type 
"application/octet-stream"
{quote}


> Treat POST with no Content-Type as application/x-www-form-urlencoded
> --------------------------------------------------------------------
>
>                 Key: SOLR-5517
>                 URL: https://issues.apache.org/jira/browse/SOLR-5517
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Ryan Ernst
>         Attachments: SOLR-5517.patch
>
>
> While the http spec states requests without a content-type should be treated 
> as application/octet-stream, the html spec says instead that post requests 
> without a content-type should be treated as a form 
> (http://www.w3.org/MarkUp/html-spec/html-spec_8.html#SEC8.2.1).  It would be 
> nice to allow large search requests from html forms, and not have to rely on 
> the browser to set the content type (since the spec says it doesn't have to).



--
This message was sent by Atlassian JIRA
(v6.1#6144)

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

Reply via email to