Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2010-06-21 01:38:16 +0400
committerRonald S. Bultje <rsbultje@gmail.com>2010-06-21 01:38:16 +0400
commitf37246952a65c675c1e4a229ea95a0f82f32b084 (patch)
treed264258eccc10a34b7db715b9c67a11e7d61dfc3 /libavformat/http.c
parentfd16564b04d53d88caad95360cea7882e9e01375 (diff)
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). Originally committed as revision 23664 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/http.c')
-rw-r--r--libavformat/http.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/http.c b/libavformat/http.c
index de76b4d777..9ba839a53c 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -53,7 +53,6 @@ typedef struct {
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 @@ static int http_connect(URLContext *h, const char *path, const char *hoststr,
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 */