Uploaded image for project: 'Pluto'
  1. Pluto
  2. PLUTO-164

response contentType can change after getWriter()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0.1-rc2
    • 1.0.1
    • None
    • None

    Description

      As far as I can tell (unfortunately, I don't know how to do better testing of this), after calling
      response.getWriter();
      I could still change the content type with
      response.setContentType("foo/bar");

      According to the spec (p. 51, line 20) this should be ignored.

      I printed the hash code of the writer to make sure the compiler wasn't optimizing the getWriter away into a no op.

      Attachments

        Activity

          People

            cdoremus Craig Doremus
            brondsem David Philip Brondsema
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: