dotnet / dotnet/aspnetcore

Feature to control whether the Kestrel server includes the Date header

Open
#60,152 0 comments 0 reactions 0 assignees View on GitHub
area-networking
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 10h
Merged PRs (30d)
281

Description

### Is there an existing issue for this?

- [x] 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.