Skip to content
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

Feature to control whether the Kestrel server includes the Date header #60152

Open
1 task done
Alice-WT opened this issue Feb 1, 2025 · 0 comments
Open
1 task done
Labels
area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions

Comments

@Alice-WT
Copy link

Alice-WT commented Feb 1, 2025

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

I am trying to remove the Date header in the built-in Kestrel web server. I want to do this because the device on which I'm running the web server does not have an RTC and has an incorrect date if it cannot update it from the Internet, resulting in the server sending an incorrect date in the header and violating the HTTP standard.

Describe the solution you'd like

I would like the ability to specify whether or not the server includes the Date header, similar to how the Server header can be disabled.

Additional context

I see that several previous requests for this have been closed; however, I think that this feature should exist because the HTTP standard (RFC2616) states that the Date header must not be added if the system does not have a clock that can provide a reasonable estimate for the current time.

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions label Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions
Projects
None yet
Development

No branches or pull requests

1 participant