Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-1890

SimpleServer does not set content-type header

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.3.1Addons
    • Sandbox-SimpleServer
    • None

    Description

      The content-type header is not set which creates problems in some settings (e.g. when behind a rewriting proxy).

      Putting response.setHeader("content-type","text/xml") (or "text/html" depending on mode) in SimpleServerServlet.doGet/doPost seems to fix the problem.

      Don't know if SimpleUimaAsService is also affected.

      Attachments

        1. SimpleServer-contenttype.patch
          2 kB
          Jens Grivolla

        Activity

          People

            Unassigned Unassigned
            jg Jens Grivolla
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 5m
                5m
                Remaining:
                Remaining Estimate - 5m
                5m
                Logged:
                Time Spent - Not Specified
                Not Specified