mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 08:41:07 +00:00
dataurisrc: Allow case-insensitive scheme
Quoting RFC 2396: For resiliency, programs interpreting URI should treat upper case letters as equivalent to lower case in scheme names (e.g., allow "HTTP" as well as "http").
This commit is contained in:
parent
29557fe623
commit
3c2312ce6b
1 changed files with 1 additions and 1 deletions
|
@ -334,7 +334,7 @@ gst_data_uri_src_set_uri (GstURIHandler * handler, const gchar * uri,
|
||||||
/* uri must be an URI as defined in RFC 2397
|
/* uri must be an URI as defined in RFC 2397
|
||||||
* data:[<mediatype>][;base64],<data>
|
* data:[<mediatype>][;base64],<data>
|
||||||
*/
|
*/
|
||||||
if (strncmp ("data:", uri, 5) != 0)
|
if (g_ascii_strncasecmp ("data:", uri, 5) != 0)
|
||||||
goto invalid_uri;
|
goto invalid_uri;
|
||||||
|
|
||||||
uri += 5;
|
uri += 5;
|
||||||
|
|
Loading…
Reference in a new issue