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

Call doGet in DefaultServlet.doPost

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 2.0.0.Beta1, 1.4.15.Final
    • None
    • Servlet
    • None

      The JBossWeb DefaultServlet would just handle POSTs to static content automatically as a GET instead:

          protected void doPost(HttpServletRequest request,
                                HttpServletResponse response)
              throws IOException, ServletException {
              doGet(request, response);
          }
      

      So we've seen some complaints for people seeing 405s from this change when migrating to EAP 7. Could undertow have an option for similar DefaultServlet.doPost behavior?

            sdouglas1@redhat.com Stuart Douglas
            rhn-support-aogburn Aaron Ogburn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: