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

Access log gets incorrect size for HEAD requests

XMLWordPrintable

      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.

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

                Created:
                Updated:
                Resolved: