Commit bbcee92b authored by Stephan Holljes's avatar Stephan Holljes Committed by Nicolas George

lavf/http: Process HTTP header before sending response.

Signed-off-by: 's avatarStephan Holljes <klaxa1337@googlemail.com>
parent aa74401a
......@@ -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,
&h->interrupt_callback, options)) < 0)
goto fail;
if ((ret = ffurl_write(s->hd, header, strlen(header))) < 0)
goto fail;
if ((ret = http_read_header(h, &new_location)) < 0)
goto fail;
if ((ret = ffurl_write(s->hd, header, strlen(header))) < 0)
goto fail;
return 0;
fail:
......
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