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

Autodetect JSON/XML when content-type is missing from request

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      Since solr 1.1, if you try:

      curl http://localhost:8983/solr/update --data-binary @books.json

      you will get a 400 bad request 'missing content stream' error

      To change this behavior, we could try harder with you POST data with www-form-encoded

      See line 394 in SolrRequestParsers.java

      Attachments

        Activity

          People

            Unassigned Unassigned
            ryantxu Ryan McKinley
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: