path: tests/fixtures/llhttp/request/headers-separated-by-dummy-characters-lenient.yml
name: Headers Separated By Dummy Characters (lenient)
checked: true
source:
  path: test/request/invalid.md
  line: 181
meta:
  type: request-lenient-optional-lf-after-cr
input:
- GET / HTTP/1.1
- 'Connection: close'
- 'Host: a'
- '\rZGET /evil: HTTP/1.1'
- 'Host: a'
- ''
llhttp:
- off=0 message begin
- off=0 len=3 span[method]="GET"
- off=3 method complete
- off=4 len=1 span[url]="/"
- off=6 url complete
- off=6 len=4 span[protocol]="HTTP"
- off=10 protocol complete
- off=11 len=3 span[version]="1.1"
- off=14 version complete
- off=16 len=10 span[header_field]="Connection"
- off=27 header_field complete
- off=28 len=5 span[header_value]="close"
- off=35 header_value complete
- off=35 len=4 span[header_field]="Host"
- off=40 header_field complete
- off=41 len=1 span[header_value]="a"
- off=44 header_value complete
- off=45 headers complete method=1 v=1/1 flags=2 content_length=0
- off=45 message complete
- 'off=46 error code=5 reason="Data after `Connection: close`"'
output:
- offset: 0
  type: request
  payload: null
- offset: 0
  type: begin
  payload: null
- offset: 0
  type: method
  payload: GET
- offset: 4
  type: url
  payload: /
- offset: 6
  type: protocol
  payload: HTTP
- offset: 11
  type: version
  payload: '1.1'
- offset: 16
  type: header_name
  payload: Connection
- offset: 28
  type: header_value
  payload: close
- offset: 35
  type: header_name
  payload: Host
- offset: 41
  type: header_value
  payload: a
- offset: 44
  type: error
  payload:
    code: UNEXPECTED_CHARACTER
    description: Expected CRLF
