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:
chme 2014-02-16 11:19:49 +01:00 committed by ejurgensen
parent 687f349927
commit d5c6f1f72f
1 changed files with 1 additions and 1 deletions

View File

@ -1075,7 +1075,7 @@ evrtsp_parse_headers(struct evrtsp_request *req, struct evbuffer *buffer)
enum message_read_status status = MORE_DATA_EXPECTED;
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) {
char *skey, *svalue;