mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-03 05:10:03 +02:00
lavf/http: Process HTTP header before sending response.
Signed-off-by: Stephan Holljes <klaxa1337@googlemail.com>
This commit is contained in:
parent
aa74401af8
commit
bbcee92b6d
@ -318,10 +318,10 @@ static int http_listen(URLContext *h, const char *uri, int flags,
|
|||||||
if ((ret = ffurl_open(&s->hd, lower_url, AVIO_FLAG_READ_WRITE,
|
if ((ret = ffurl_open(&s->hd, lower_url, AVIO_FLAG_READ_WRITE,
|
||||||
&h->interrupt_callback, options)) < 0)
|
&h->interrupt_callback, options)) < 0)
|
||||||
goto fail;
|
goto fail;
|
||||||
if ((ret = ffurl_write(s->hd, header, strlen(header))) < 0)
|
|
||||||
goto fail;
|
|
||||||
if ((ret = http_read_header(h, &new_location)) < 0)
|
if ((ret = http_read_header(h, &new_location)) < 0)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
if ((ret = ffurl_write(s->hd, header, strlen(header))) < 0)
|
||||||
|
goto fail;
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
fail:
|
fail:
|
||||||
|
Loading…
Reference in New Issue
Block a user