[rtmpdump] [PATCH] Spell Referer HTTP header as in RFC 1945
Petr Pisar
petr.pisar at atlas.cz
Mon Nov 7 20:57:59 CET 2011
This is required by nginx/1.0.4 (e.g.
http://cdn.livestation.com/flash/player/5.6/player.swf).
---
librtmp/hashswf.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/librtmp/hashswf.c b/librtmp/hashswf.c
index 3c56b69..7cb516d 100644
--- a/librtmp/hashswf.c
+++ b/librtmp/hashswf.c
@@ -141,7 +141,7 @@ HTTP_get(struct HTTP_ctx *http, const char *url, HTTP_read_callback *cb)
return HTTPRES_LOST_CONNECTION;
i =
sprintf(sb.sb_buf,
- "GET %s HTTP/1.0\r\nUser-Agent: %s\r\nHost: %s\r\nReferrer: %.*s\r\n",
+ "GET %s HTTP/1.0\r\nUser-Agent: %s\r\nHost: %s\r\nReferer: %.*s\r\n",
path, AGENT, host, (int)(path - url + 1), url);
if (http->date[0])
i += sprintf(sb.sb_buf + i, "If-Modified-Since: %s\r\n", http->date);
--
1.7.3.4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 230 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/rtmpdump/attachments/20111107/7134d134/attachment.asc>
More information about the rtmpdump
mailing list