Commit 11f98994 authored by Aman Gupta's avatar Aman Gupta

avformat/http: avoid ff_http_do_new_request after http/1.0 response

This makes do_new_request fail early when dealing with a http/1.0 server, avoiding unnecessary "reconnecting" warnings shown to the user.
Signed-off-by: 's avatarAman Gupta <aman@tmm1.net>
parent a232a72d
......@@ -917,6 +917,8 @@ static int process_line(URLContext *h, char *line, int line_count,
}
av_log(h, AV_LOG_TRACE, "HTTP version string: %s\n", version);
} else {
if (av_strncasecmp(p, "HTTP/1.0", 8) == 0)
s->willclose = 1;
while (!av_isspace(*p) && *p != '\0')
p++;
while (av_isspace(*p))
......
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