Use EVBUFFER_EOL_CRLF for evbuffer_readln to make sure that the end of
the rtsp-header (an empty line) is recognized
This commit is contained in:
parent
687f349927
commit
d5c6f1f72f
|
@ -1075,7 +1075,7 @@ evrtsp_parse_headers(struct evrtsp_request *req, struct evbuffer *buffer)
|
||||||
enum message_read_status status = MORE_DATA_EXPECTED;
|
enum message_read_status status = MORE_DATA_EXPECTED;
|
||||||
|
|
||||||
struct evkeyvalq *headers = req->input_headers;
|
struct evkeyvalq *headers = req->input_headers;
|
||||||
while ((line = evbuffer_readln(buffer, NULL, EVBUFFER_EOL_ANY))
|
while ((line = evbuffer_readln(buffer, NULL, EVBUFFER_EOL_CRLF))
|
||||||
!= NULL) {
|
!= NULL) {
|
||||||
char *skey, *svalue;
|
char *skey, *svalue;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue