path: tests/fixtures/llhttp/request/invalid-space-after-start-line-only-lfs-present-lenient.yml
name: Invalid space after start line / Only LFs Present (lenient)
checked: true
source:
  path: test/request/invalid.md
  line: 568
meta:
  type: request-lenient-all
input:
- POST / HTTP/1.1\n\
- 'Transfer-Encoding: chunked\n\'
- 'Trailer: Baz'
- 'Foo: abc\n\'
- 'Bar: def\n\'
- \n\
- 1\n\
- A\n\
- 1;abc\n\
- B\n\
- 1;def=ghi\n\
- C\n\
- 1;jkl="mno"\n\
- D\n\
- 0\n\
- \n\
- 'Baz: ghi\n\'
- \n
llhttp:
- off=0 message begin
- off=0 len=4 span[method]="POST"
- off=4 method complete
- off=5 len=1 span[url]="/"
- off=7 url complete
- off=7 len=4 span[protocol]="HTTP"
- off=11 protocol complete
- off=12 len=3 span[version]="1.1"
- off=15 version complete
- off=16 len=17 span[header_field]="Transfer-Encoding"
- off=34 header_field complete
- off=35 len=7 span[header_value]="chunked"
- off=43 header_value complete
- off=43 len=7 span[header_field]="Trailer"
- off=51 header_field complete
- off=52 len=3 span[header_value]="Baz"
- off=57 header_value complete
- off=57 len=3 span[header_field]="Foo"
- off=61 header_field complete
- off=62 len=3 span[header_value]="abc"
- off=66 header_value complete
- off=66 len=3 span[header_field]="Bar"
- off=70 header_field complete
- off=71 len=3 span[header_value]="def"
- off=75 header_value complete
- off=76 headers complete method=3 v=1/1 flags=208 content_length=0
- off=78 chunk header len=1
- off=78 len=1 span[body]="A"
- off=80 chunk complete
- off=82 len=3 span[chunk_extension_name]="abc"
- off=85 chunk_extension_name complete
- off=86 chunk header len=1
- off=86 len=1 span[body]="B"
- off=88 chunk complete
- off=90 len=3 span[chunk_extension_name]="def"
- off=94 chunk_extension_name complete
- off=94 len=3 span[chunk_extension_value]="ghi"
- off=97 chunk_extension_value complete
- off=98 chunk header len=1
- off=98 len=1 span[body]="C"
- off=100 chunk complete
- off=102 len=3 span[chunk_extension_name]="jkl"
- off=106 chunk_extension_name complete
- off=106 len=5 span[chunk_extension_value]=""mno""
- off=111 chunk_extension_value complete
- off=112 chunk header len=1
- off=112 len=1 span[body]="D"
- off=114 chunk complete
- off=117 chunk header len=0
- off=117 len=3 span[header_field]="Baz"
- off=121 header_field complete
- off=122 len=3 span[header_value]="ghi"
- off=126 header_value complete
- off=127 chunk complete
- off=127 message complete
output:
- offset: 0
  type: request
  payload: null
- offset: 0
  type: begin
  payload: null
- offset: 0
  type: error
  payload:
    code: UNEXPECTED_CHARACTER
    description: Invalid protocol name
