]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[uri] Make URI schemes case-insensitive
authorMichael Brown <mcb30@ipxe.org>
Thu, 1 Jul 2021 15:32:46 +0000 (16:32 +0100)
committerMichael Brown <mcb30@ipxe.org>
Thu, 1 Jul 2021 15:32:46 +0000 (16:32 +0100)
commit2690f730961e335875cac5fd9cf870a94eaef11a
treea995bdb321936ffdeb50dc57dd5845abe02741c9
parent4aa03758210d861dacb0531062576287ac76e353
[uri] Make URI schemes case-insensitive

RFC 3986 section 3.1 defines URI schemes as case-insensitive (though
the canonical form is always lowercase).

Use strcasecmp() rather than strcmp() to allow for case insensitivity
in URI schemes.

Requested-by: Andreas Hammarskjöld <junior@2PintSoftware.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/core/open.c
src/net/tcp/httpconn.c