Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-878

If a header is set twice, it is logged only once

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 1.0.12
    • logback-access
    • None

    Description

      If the following request is sent:

      GET / HTTP/1.1
      user-agent: Wget/1.14 (linux-gnu)
      accept: */*
      host: 192.168.2.10:8080
      connection: Keep-Alive
      header1: a
      header1: b
      
      

      It is logged as:

      GET / HTTP/1.1
      user-agent: Wget/1.14 (linux-gnu)
      accept: */*
      host: 192.168.2.10:8080
      connection: Keep-Alive
      header1: a
      
      

      The second header 'header1' is not logged.

      This is due to the fact that ch.qos.logback.access.spi.IAccessEvent.getRequestHeaderMap() returns Map<String, String> instead of Map<String, String[]>

      Attachments

        Activity

          People

            logback-dev Logback dev list
            nicolas Nicolas
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: