nekipelov / httpparser

HTTP request, response and urls parser
MIT License
117 stars 35 forks source link

Cannot see the headers. #1

Closed ghost closed 4 years ago

ghost commented 5 years ago
// incomming headers
OPTIONS rtsp://127.0.0.1:8088/9cb654c5f074 RTSP/1.0
CSeq: 2
User-Agent: openRTSP (LIVE555 Streaming Media v2018.02.18)

// inspect 
OPTIONS rtsp://127.0.0.1:8088/9cb654c5f074 HTTP/0.0

+ keep-alive: 0

Where are the CSeq and User-Agent ?!?

I guess I tweak it for RTSP.```

            case RequestHttpVersion_h:
                if( input == 'H' || input == 'R' )

OPTIONS rtsp://127.0.0.1:8088/9cb654c5f074 HTTP/1.0
CSeq: 2
User-Agent: openRTSP (LIVE555 Streaming Media v2018.02.18)

+ keep-alive: 0
Icaro-Lima commented 5 years ago

Look at my pull request: #2.

nekipelov commented 4 years ago

Merged.