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

Uwe Schindler commented on SOLR-5517:
-------------------------------------

Hi,

I looked up what Jetty by default is doing, here is it: 
[https://github.com/eclipse/jetty.project/blob/e92f44ed73453d6107a30ba42600787963c6243d/jetty-server/src/main/java/org/eclipse/jetty/server/Request.java#L288]

Actually it only parses the stuff if a content-type is set and the method is 
POST/PUT. So our code is doing the same (because we dont use Jetty's parameter 
decoding, as its not felxible enough with charsets).

> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to