[rtmpdump] [PATCH] Use CRLF newlines consistently for all HTTP POST headers

Martin Storsjo martin at martin.st
Mon May 21 22:52:11 CEST 2012


---
 librtmp/rtmp.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/librtmp/rtmp.c b/librtmp/rtmp.c
index 6cf2c85..8b3ceab 100644
--- a/librtmp/rtmp.c
+++ b/librtmp/rtmp.c
@@ -3729,8 +3729,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],
-- 
1.7.9.4



More information about the rtmpdump mailing list