Commit 5c1cb327 authored by rbultje's avatar rbultje

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).



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@23664 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent a604e97f
...@@ -53,7 +53,6 @@ typedef struct { ...@@ -53,7 +53,6 @@ typedef struct {
static int http_connect(URLContext *h, const char *path, const char *hoststr, static int http_connect(URLContext *h, const char *path, const char *hoststr,
const char *auth, int *new_location); 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) 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, ...@@ -323,7 +322,7 @@ static int http_connect(URLContext *h, const char *path, const char *hoststr,
authstr ? authstr : ""); authstr ? authstr : "");
av_freep(&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); return AVERROR(EIO);
/* init input buffer */ /* init input buffer */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment