]> git.ipfire.org Git - thirdparty/curl.git/commit
http: simplify the check for auth methods
authorDaniel Stenberg <daniel@haxx.se>
Thu, 20 Feb 2025 15:14:58 +0000 (16:14 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 20 Feb 2025 21:50:45 +0000 (22:50 +0100)
commitd1fc1c4a854d5cc809cc4ae59a9511900228023a
tree93311c02fa3fc5148a509852a33294880ad226a9
parent6bc65a444b2e7f1453b0b4b91963a8fcf257784a
http: simplify the check for auth methods

Avoids having to use the correct index into the line. Avoids repeated
use of is_valid_auth_separator.

Require that the following letter is not an alnum instead of checking
explicitly for ch == '\0' || ch == ',' || ISSPACE(ch). After all, the
point is to not erroneously match another auth string using the same
prefix.

Follow-up to b75620b9a05c0f0d03bd

Closes #16406
lib/http.c