Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-268

How behave getContentType() and why it returns null?

XMLWordPrintable

    • Icon: Clarification Clarification
    • Resolution: Done
    • Icon: Minor Minor
    • 1.1.Beta4
    • 1.1.Beta3
    • Servlet
    • None

      I retrieve the content type with HttpServletResponse#getContentType() when filtering the request inside my ServletFilter but the result is always a null value. Not sure this is a bug since I'm not really sure this is the best way to do. However, in my tests only undertow returns null (not tomcat and jetty).

      Can you explain when and why getContentType() returns null with undertow ?

      Thanks

              sdouglas1@redhat.com Stuart Douglas (Inactive)
              gdrouet Guillaume Drouet (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: