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

Change default mapping for XML to application/xml instead of text/xml

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Minor Minor
    • 1.3.0.CR3
    • 1.3.0.CR2
    • Servlet
    • None

      Could you please consider to change default MIME mapping for XML to application/xml instead of text/xml ?

      The application/xml should be preferable to text/xml see
      http://stackoverflow.com/questions/6140447/how-do-i-use-application-xml-as-compared-to-text-xml

      Also, from my personal experience, in Spring MVC Framework you have to explicitly set the ViewResolver for text/xml because default view for XML is only applied for application/xml

              sdouglas1@redhat.com Stuart Douglas (Inactive)
              trepel Tomas Repel
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: