You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the report, and sorry for the late reply.
The quotes are by design on the HTTP side: browsers send Sec-CH-UA-Platform, Sec-CH-UA-Platform-Version, Sec-CH-UA-Arch, and Sec-CH-UA-Model as HTTP Structured Field strings (RFC 9651), so the header value itself is "Windows", including the quotes. Platform, PlatformVersion, Architecture, and Model return the header values as sent, and they keep doing so to avoid breaking existing code.
Version 3.2.5 adds decoded properties to HttpClientHints and HttpClientHintsView (#20):
HttpClientHints hints = httpContext.GetClientHints();
string? platform = hints.Platform; // "Windows", with quotes
string? decodedPlatform = hints.DecodedPlatform; // Windows
Property
Decoded property
Platform
DecodedPlatform
PlatformVersion
DecodedPlatformVersion
Architecture
DecodedArchitecture
Model
DecodedModel
For other headers of this type, such as Sec-CH-UA-Bitness, use HttpClientHintsInterpreter.DecodeStructuredString. A malformed quoted value decodes to null.
UA and FullVersionList are different: their headers are lists of brands with versions, such as "Chromium";v="138", "Google Chrome";v="138", so the quotes are part of the list syntax. These two properties still return the serialized list.
The README section Decoded values has the details. I'm closing this issue; feel free to reopen it if something doesn't work as expected.
Activity
BenjaminAbt commentedon Nov 21, 2026
Thanks for the report, and sorry for the late reply.
The quotes are by design on the HTTP side: browsers send
Sec-CH-UA-Platform,Sec-CH-UA-Platform-Version,Sec-CH-UA-Arch, andSec-CH-UA-Modelas HTTP Structured Field strings (RFC 9651), so the header value itself is"Windows", including the quotes.Platform,PlatformVersion,Architecture, andModelreturn the header values as sent, and they keep doing so to avoid breaking existing code.Version 3.2.5 adds decoded properties to
HttpClientHintsandHttpClientHintsView(#20):PlatformDecodedPlatformPlatformVersionDecodedPlatformVersionArchitectureDecodedArchitectureModelDecodedModelFor other headers of this type, such as
Sec-CH-UA-Bitness, useHttpClientHintsInterpreter.DecodeStructuredString. A malformed quoted value decodes tonull.UAandFullVersionListare different: their headers are lists of brands with versions, such as"Chromium";v="138", "Google Chrome";v="138", so the quotes are part of the list syntax. These two properties still return the serialized list.The README section Decoded values has the details. I'm closing this issue; feel free to reopen it if something doesn't work as expected.