Closed
Description
In the file aspnetcore/src/Http/Headers/src/HeaderUtilities.cs, method CheckValidToken(StringSegment value, string parameterName) (line 70), when there is a mismatch with the token, an exception is thrown
The format of this message is: "Invalid token '{0}.", value
Today I ran into this exception, and the message was very confusing. This is because of the ' which is not closed. The resulting message made it seem as if somehow I had an extra dot in the value parameter.
Can be fixed by changing the message to: "Invalid token '{0}'.", value
(added an extra ' after the {0} part)