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

HEAD requests to FileResource have Content-Length overwritten

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Minor
    • 1.1.4.Final, 1.2.0.CR1
    • 1.2.0.Beta9
    • Core
    • None

    Description

      When using the ResourceHandler with FileResourceManager and asking for the size of a file with a HEAD request Undertow always respond with Content-Length: 0.

      Sample code and discussion in the referenced forum post.

      I think the problem is not only in the ResourceHandler, because if I set the Content-Length header in it, it still comes out as 0. I suspect the core code has no notion of empty entity responses in the HEAD case.

      Attachments

        Activity

          People

            sdouglas1@redhat.com Stuart Douglas
            b.eckenfels Bernd Eckenfels (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: