mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-08-09 01:21:06 +00:00
avformat/http: accept case-insensitive Connection header value
RFC 9110 defines this as case-insensitive, and some servers (e.g. MythTV) send it as "Close" instead of "close". See-Also: https://code.ffmpeg.org/FFmpeg/FFmpeg/issues/23222 Signed-off-by: Niklas Haas <git@haasn.dev>
This commit is contained in:
@@ -1293,7 +1293,7 @@ static int process_line(URLContext *h, char *line, int line_count, int *parsed_h
|
||||
} else if (!av_strcasecmp(tag, "Proxy-Authenticate")) {
|
||||
ff_http_auth_handle_header(&s->proxy_auth_state, tag, p);
|
||||
} else if (!av_strcasecmp(tag, "Connection")) {
|
||||
if (!strcmp(p, "close"))
|
||||
if (!av_strcasecmp(p, "close"))
|
||||
s->willclose = 1;
|
||||
} else if (!av_strcasecmp(tag, "Server")) {
|
||||
if (!av_strcasecmp(p, "AkamaiGHost")) {
|
||||
|
||||
Reference in New Issue
Block a user