From: Martin Storsjo Date: Mon, 21 May 2012 20:52:11 +0000 (+0300) Subject: Use CRLF newlines consistently for all HTTP POST headers X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4a08069f086b68e99f33e931583148f4090960a3;p=rtmpdump Use CRLF newlines consistently for all HTTP POST headers --- 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],