New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strange behavior when adding a user agent #101658
Comments
If you want to customize headers for each request, create an HttpRequestMessage yourself and call SendAsync instead. |
It contradicts the HTTP protocol, about one user agent. |
Http allows for multiple user agent values to be specified |
Well, let it add headers to all requests, but that's not the problem here. The problem is that the client sends many user agents to the server instead of just one. So, the client behaves incorrectly. |
In one header? |
Well, it doesn't say anywhere that there can be 20 user agents in one request. It says that the user agent is one line, which essentially identifies the device. |
It does
|
It's like a user agent structure, not two |
Another possibility is that there could be a couple of identical headers in the request with different keys, so that the headers are within one key, separated by spaces; I haven't heard of this before. |
If we even suppose that products are added to the user agent and then the user agent is created from them, why do regular user agents pass validation? They don't match the product characteristics specified. |
Description
When adding a user agent, for some reason, many user agents are added instead of just one. Ideally, after adding one user agent, adding another should result in an error.
Reproduction Steps
https://github.com/Mr0N/TestHost/blob/master/TestHost/Program.cs
Expected behavior
Actual behavior
Regression?
Known Workarounds
Configuration
Other information
No response
The text was updated successfully, but these errors were encountered: