Solr
  1. Solr
  2. SOLR-5517

Return HTTP error on POST requests with no Content-Type

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.7, Trunk
    • Component/s: None
    • Labels:
      None

      Description

      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).

      1. SOLR-5517.patch
        7 kB
        Uwe Schindler
      2. SOLR-5517.patch
        7 kB
        Uwe Schindler
      3. SOLR-5517.patch
        6 kB
        Uwe Schindler
      4. SOLR-5517.patch
        4 kB
        Ryan Ernst
      5. SOLR-5517.patch
        4 kB
        Ryan Ernst

        Issue Links

          Activity

            People

            • Assignee:
              Ryan Ernst
              Reporter:
              Ryan Ernst
            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development