-
Couldn't load subscription status.
- Fork 489
Description
I'm trying to register to a SIP proxy that sends the WWW-Authenticate header back to a register request in the form:
DIGEST realm="...",qop="auth",nonce="BroadWorksXm7j92sh3Tj3jwpbBW",algorithm=MD5
Note here that the authentication scheme is set to DIGEST rather than Digest.
I managed to get things working with a single line change to Line 859 of SIPHeader.cs to use StringComparison.OrdinalIgnoreCase:
- if (headerValue.StartsWith(SIPAuthorisationDigest.METHOD))
+ if (headerValue.StartsWith(SIPAuthorisationDigest.METHOD, StringComparison.OrdinalIgnoreCase))I've verified this works locally, but wanted to check before opening a PR whether this would have any chance of being accepted since the RFCs all specify the scheme should be spelled as Digest.
There are various sources on the web that state the authentication scheme is supposed to be case-insensitive when related to HTTP, but I can't find much when related to SIP. The only reference I could find is from 20 years ago, but here are a few related to HTTP:
- MDN
- Related Rails issue
- RFC 2617 ("It uses an extensible, case-insensitive token to identify the authentication scheme")