path: tests/fixtures/llhttp/request/rtsp-protocol-and-put-method.yml
name: RTSP Protocol And PUT Method
checked: true
source:
  path: test/request/invalid.md
  line: 45
meta:
  type: request
input:
- PUT /music/sweet/music RTSP/1.0
- 'Host: example.com'
- ''
- ''
llhttp:
- off=0 message begin
- off=0 len=3 span[method]="PUT"
- off=3 method complete
- off=4 len=18 span[url]="/music/sweet/music"
- off=23 url complete
- off=23 len=4 span[protocol]="RTSP"
- off=27 protocol complete
- off=27 error code=8 reason="Invalid method for RTSP/x.x request"
output:
- offset: 0
  type: request
  payload: null
- offset: 0
  type: begin
  payload: null
- offset: 0
  type: error
  payload:
    code: UNEXPECTED_CHARACTER
    description: Invalid protocol
