Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-5517

Return HTTP error on POST requests with no Content-Type

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.7, 6.0
    • None
    • 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).

      Attachments

        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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            rjernst Ryan Ernst
            rjernst Ryan Ernst
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment