path: tests/fixtures/llhttp/request/chunked-no-extension-after-semicolon.yml
name: chunked / No Extension After Semicolon
checked: true
source:
  path: test/request/transfer-encoding.md
  line: 328
meta:
  type: request
input:
- POST /chunked_w_unicorns_after_length HTTP/1.1
- 'Host: localhost'
- 'Transfer-encoding: chunked'
- ''
- 2;
- aa
- '0'
- ''
- ''
llhttp:
- off=0 message begin
- off=0 len=4 span[method]="POST"
- off=4 method complete
- off=5 len=32 span[url]="/chunked_w_unicorns_after_length"
- off=38 url complete
- off=38 len=4 span[protocol]="HTTP"
- off=42 protocol complete
- off=43 len=3 span[version]="1.1"
- off=46 version complete
- off=48 len=4 span[header_field]="Host"
- off=53 header_field complete
- off=54 len=9 span[header_value]="localhost"
- off=65 header_value complete
- off=65 len=17 span[header_field]="Transfer-encoding"
- off=83 header_field complete
- off=84 len=7 span[header_value]="chunked"
- off=93 header_value complete
- off=95 headers complete method=3 v=1/1 flags=208 content_length=0
- off=98 error code=2 reason="Invalid character in chunk extensions"
output:
- offset: 0
  type: request
  payload: null
- offset: 0
  type: begin
  payload: null
- offset: 0
  type: method
  payload: POST
- offset: 5
  type: url
  payload: /chunked_w_unicorns_after_length
- offset: 38
  type: protocol
  payload: HTTP
- offset: 43
  type: version
  payload: '1.1'
- offset: 48
  type: header_name
  payload: Host
- offset: 54
  type: header_value
  payload: localhost
- offset: 65
  type: header_name
  payload: Transfer-encoding
- offset: 84
  type: header_value
  payload: chunked
- offset: 95
  type: headers
  payload:
    method: POST
    status: null
    url: /chunked_w_unicorns_after_length
    protocol: HTTP
    version: '1.1'
    body: chunked
- offset: 95
  type: chunk_length
  payload: '2'
- offset: 97
  type: error
  payload:
    code: UNEXPECTED_CHARACTER
    description: Expected chunk extension name
