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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.0.0.Beta1, 1.4.4.Final
    • None
    • None
    • 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.

            sdouglas1@redhat.com Stuart Douglas
            rhatlapa@redhat.com Radim Hatlapatka (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: