changeset 6150:6b770ef6cbea libavformat

Use url_write(), not http_write(), for sending the HTTP headers. This prevents them from being sent using chunked encoding (I don't think this ever happened, but either way it would be wrong).
author rbultje
date Sun, 20 Jun 2010 21:38:16 +0000
parents 902c290b60ed
children 8634f4b534fc
files http.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/http.c	Sun Jun 20 11:40:41 2010 +0000
+++ b/http.c	Sun Jun 20 21:38:16 2010 +0000
@@ -53,7 +53,6 @@
 
 static int http_connect(URLContext *h, const char *path, const char *hoststr,
                         const char *auth, int *new_location);
-static int http_write(URLContext *h, const uint8_t *buf, int size);
 
 void ff_http_set_headers(URLContext *h, const char *headers)
 {
@@ -323,7 +322,7 @@
              authstr ? authstr : "");
 
     av_freep(&authstr);
-    if (http_write(h, s->buffer, strlen(s->buffer)) < 0)
+    if (url_write(s->hd, s->buffer, strlen(s->buffer)) < 0)
         return AVERROR(EIO);
 
     /* init input buffer */