Feature to control whether the Kestrel server includes the Date header #60152
Labels
area-networking
Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions
Is there an existing issue for this?
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.
The text was updated successfully, but these errors were encountered: