path: tests/fixtures/llhttp/response/invalid-obs-fold-after-chunked-value.yml
name: Invalid OBS Fold After Chunked Value
checked: true
source:
  path: test/response/transfer-encoding.md
  line: 389
meta:
  type: response-lenient-headers
input:
- HTTP/1.1 200 OK
- 'Transfer-Encoding: chunked'
- '  abc'
- ''
- '5'
- World
- '0'
- ''
- ''
llhttp:
- off=0 message begin
- off=0 len=4 span[protocol]="HTTP"
- off=4 protocol complete
- off=5 len=3 span[version]="1.1"
- off=8 version complete
- off=13 len=2 span[status]="OK"
- off=17 status complete
- off=17 len=17 span[header_field]="Transfer-Encoding"
- off=35 header_field complete
- off=36 len=7 span[header_value]="chunked"
- off=45 len=5 span[header_value]="  abc"
- off=52 header_value complete
- off=54 headers complete status=200 v=1/1 flags=200 content_length=0
- off=54 len=1 span[body]="5"
- off=55 len=1 span[body]=cr
- off=56 len=1 span[body]=lf
- off=57 len=5 span[body]="World"
- off=62 len=1 span[body]=cr
- off=63 len=1 span[body]=lf
- off=64 len=1 span[body]="0"
- off=65 len=1 span[body]=cr
- off=66 len=1 span[body]=lf
- off=67 len=1 span[body]=cr
- off=68 len=1 span[body]=lf
output:
- offset: 0
  type: response
  payload: null
- offset: 0
  type: begin
  payload: null
- offset: 0
  type: protocol
  payload: HTTP
- offset: 5
  type: version
  payload: '1.1'
- offset: 9
  type: status
  payload: '200'
- offset: 13
  type: reason
  payload: OK
- offset: 17
  type: header_name
  payload: Transfer-Encoding
- offset: 36
  type: header_value
  payload: chunked
- offset: 45
  type: error
  payload:
    code: UNEXPECTED_CHARACTER
    description: Invalid header field name character
