The DigestAuthorizationHeader uses a space as credential separator for both building and parsing, while the RFC examples use a comma followed by a space: https://httpwg.org/specs/rfc7616.html#rfc.section.3.9.1
I believe the following changes should be made:
DigestAuthorizationHeader.AppendField should use $", {fn}=\"{fv}\"" (taking into account that the first field shouldn't have the comma prefixed).
DigestAuthorizationHeader.Create should set the CredentialsDelimiter in the AuthorizationHeader options to ", " instead of " ".
I can create a PR, but it would be a breaking change, unless it's made backwards compatible with the space-only delimiter.
The
DigestAuthorizationHeaderuses a space as credential separator for both building and parsing, while the RFC examples use a comma followed by a space: https://httpwg.org/specs/rfc7616.html#rfc.section.3.9.1I believe the following changes should be made:
DigestAuthorizationHeader.AppendFieldshould use$", {fn}=\"{fv}\""(taking into account that the first field shouldn't have the comma prefixed).DigestAuthorizationHeader.Createshould set theCredentialsDelimiterin theAuthorizationHeaderoptions to", "instead of" ".I can create a PR, but it would be a breaking change, unless it's made backwards compatible with the space-only delimiter.