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

Access log gets incorrect size for HEAD requests

    XMLWordPrintable

Details

    Description

      Say the pattern is %r %s %b. Then the log will be:

      GET /zzz/javax.faces.resource/system/sound/beep.wav.xhtml HTTP/1.1 200 37656
      HEAD /zzz/javax.faces.resource/system/sound/beep.wav.xhtml HTTP/1.1 200 37656
      

      Even though for HEAD requests %b would be expected to output -.
      Sniffing with JDBS' TCP/IP Monitor shows the HEAD response to be "Size: 0 (276) bytes", i.e. no body is sent.

      Attachments

        Activity

          People

            sdouglas1@redhat.com Stuart Douglas
            vsevolodgol Vsevolod Golovanov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: