path: tests/fixtures/llhttp/request/invalid-obs-fold-after-chunked-value-chunk-data-not-terminated-by-crlf-lenient.yml
name: Invalid OBS fold after chunked value / Chunk Data Not Terminated By CRLF (lenient)
checked: true
source:
  path: test/request/transfer-encoding.md
  line: 1140
meta:
  type: request-lenient-optional-crlf-after-chunk
input:
- GET / HTTP/1.1
- 'Host: a'
- 'Connection: close '
- 'Transfer-Encoding: chunked '
- ''
- '5'
- ABCDE0
- ''
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=4 span[header_field]="Host"
- off=21 header_field complete
- off=22 len=1 span[header_value]="a"
- off=25 header_value complete
- off=25 len=10 span[header_field]="Connection"
- off=36 header_field complete
- off=37 len=6 span[header_value]="close "
- off=45 header_value complete
- off=45 len=17 span[header_field]="Transfer-Encoding"
- off=63 header_field complete
- off=64 len=8 span[header_value]="chunked "
- off=74 header_value complete
- off=76 headers complete method=1 v=1/1 flags=20a content_length=0
- off=79 chunk header len=5
- off=79 len=5 span[body]="ABCDE"
- off=84 chunk complete
- off=87 chunk header len=0
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: Host
- offset: 22
  type: header_value
  payload: a
- offset: 25
  type: header_name
  payload: Connection
- offset: 37
  type: header_value
  payload: close
- offset: 45
  type: header_name
  payload: Transfer-Encoding
- offset: 64
  type: header_value
  payload: chunked
- offset: 76
  type: headers
  payload:
    method: GET
    status: null
    url: /
    protocol: HTTP
    version: '1.1'
    body: chunked
- offset: 76
  type: chunk_length
  payload: '5'
- offset: 79
  type: chunk
  payload: ABCDE
- offset: 79
  type: data
  payload: ABCDE
- offset: 84
  type: error
  payload:
    code: UNEXPECTED_CHARACTER
    description: Expected CRLF after chunk data
