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

Configurable Content-Type headers for PHPResponseWriters and PHPSerializedResponseWriter

    Details

      Description

      The PHPResponseWriter and PHPSerializedResponseWriter currently send a hard coded Content-Type header of text/plain; charset=UTF-8 although there are constants defining text/x-php;charset=UTF-8 and text/x-php-serialized;charset=UTF-8 which remain unused. This makes content type guessing on the client side quite complicated.

      I already created a patch (from the branch_4x github branch) to use the respective constants and also added the possibility to configure the Content-Type header via solrconfig.xml (like in JSONResponseWriter).

        Attachments

        1. SOLR-4110.patch
          2 kB
          Dominik Siebel
        2. SOLR-4110_trunk.patch
          3 kB
          Dominik Siebel
        3. SOLR-4110_branch_4x.patch
          2 kB
          Dominik Siebel

          Activity

            People

            • Assignee:
              markrmiller@gmail.com Mark Miller
              Reporter:
              dsiebel Dominik Siebel
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: