path: tests/fixtures/llhttp/request/it-should-be-unsafe-to-finish-after-incomplete-put-request.yml
name: It Should Be Unsafe To Finish After Incomplete PUT Request
checked: true
source:
  path: test/request/finish.md
  line: 30
meta:
  type: request-finish
input:
- PUT / HTTP/1.1
- 'Content-Length: 100'
- ''
llhttp:
- off=0 message begin
- off=0 len=3 span[method]="PUT"
- 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=14 span[header_field]="Content-Length"
- off=31 header_field complete
- off=32 len=3 span[header_value]="100"
- off=NULL finish=2
output:
- offset: 0
  type: request
  payload: null
- offset: 0
  type: begin
  payload: null
- offset: 0
  type: method
  payload: PUT
- offset: 4
  type: url
  payload: /
- offset: 6
  type: protocol
  payload: HTTP
- offset: 11
  type: version
  payload: '1.1'
- offset: 16
  type: header_name
  payload: Content-Length
- offset: 32
  type: header_value
  payload: '100'
