From 4a08069f086b68e99f33e931583148f4090960a3 Mon Sep 17 00:00:00 2001 From: Martin Storsjo Date: Mon, 21 May 2012 23:52:11 +0300 Subject: [PATCH] Use CRLF newlines consistently for all HTTP POST headers --- librtmp/rtmp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/librtmp/rtmp.c b/librtmp/rtmp.c index 6183d20..ab52c49 100644 --- a/librtmp/rtmp.c +++ b/librtmp/rtmp.c @@ -3835,8 +3835,8 @@ HTTP_Post(RTMP *r, RTMPTCmd cmd, const char *buf, int len) int hlen = snprintf(hbuf, sizeof(hbuf), "POST /%s%s/%d HTTP/1.1\r\n" "Host: %.*s:%d\r\n" "Accept: */*\r\n" - "User-Agent: Shockwave Flash\n" - "Connection: Keep-Alive\n" + "User-Agent: Shockwave Flash\r\n" + "Connection: Keep-Alive\r\n" "Cache-Control: no-cache\r\n" "Content-type: application/x-fcs\r\n" "Content-length: %d\r\n\r\n", RTMPT_cmds[cmd], -- 2.50.1