Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-6257

When server gives response 405 it should also include Allow header listing allowed methods

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 7.1.0.DR5
    • Undertow
    • None
    • Hide

      Do request with not allowed HTTP method, e.g. using TRACE (e.g. using telnet):

      TRACE / HTTP/1.1
      Host: localhost
      
      Show
      Do request with not allowed HTTP method, e.g. using TRACE (e.g. using telnet): TRACE / HTTP/1.1 Host: localhost

      According to RFC for HTTP/1.1 the server should provide Allow header in case of responding with 405 [1], but Undertow doesn't send it.

      [1]
      https://www.ietf.org/rfc/rfc2616.txt

      10.4.6 405 Method Not Allowed

      The method specified in the Request-Line is not allowed for the
      resource identified by the Request-URI. The response MUST include an
      Allow header containing a list of valid methods for the requested
      resource.

              Unassigned Unassigned
              rhatlapa@redhat.com Radim Hatlapatka (Inactive)
              Jan Stourac Jan Stourac
              Jan Stourac Jan Stourac
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: