]> granicus.if.org Git - rtmpdump/commitdiff
Use CRLF newlines consistently for all HTTP POST headers
authorMartin Storsjo <martin@martin.st>
Mon, 21 May 2012 20:52:11 +0000 (23:52 +0300)
committerHoward Chu <hyc@highlandsun.com>
Tue, 30 Oct 2012 16:02:12 +0000 (09:02 -0700)
librtmp/rtmp.c

index 6183d200c36da64f236ae15b70fd34a355221892..ab52c497c9b80b9bdaee2e3af0bf0b8eaf66bc67 100644 (file)
@@ -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],