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

HEAD requests to FileResource have Content-Length overwritten

XMLWordPrintable

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

      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.

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

                Created:
                Updated:
                Resolved: