Solr
  1. Solr
  2. SOLR-3389

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

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Trivial Trivial
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      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

        Activity

        Ryan McKinley created issue -
        Ryan McKinley made changes -
        Field Original Value New Value
        Priority Major [ 3 ] Trivial [ 5 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Ryan McKinley
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development