Uploaded image for project: 'appNG'
  1. appNG
  2. APPNG-2309

Always set response headers before writing response

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Done
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.21.0
    • Component/s: appng-api, appng-core
    • Labels:
      None

      Description

      According to the servlet API of HttpServletResponse#doGet(request,response) it is necessary to set the response headers such as content type before writing the body.

      The servlet container must write the headers before committing the response, because in HTTP the headers must be sent before the response body.

        Attachments

          Activity

            People

            • Assignee:
              stuemke.claus Claus Stuemke
              Reporter:
              stuemke.claus Claus Stuemke
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: