You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Possibility to suppress the HTTP Date header field #983
I am writing a small application that emulates electrical meters like the Everhome EcoTracker. Therefore, I am using Pekko and Pekko Http.
The emulated EcoTracker device has the absolute non-standard behavior of not providing a Date header field in its HTTP responses. I guess the main reason for that is that the device has no date/time information. Unfortunately, some battery storages rely on an HTTP response with exactly the two HTTP header fields content-type and content-length.
With the current Pekko HTTP version, I am not able to suppress the Date header field. It is always automatically added. I am thinking about an additional configuration parameter that allows suppressing the Date header in a similar manner as it is possible with der Server header field.
I would volunteer to implement that feature and provide a PR. I just wanted to first check if such a PR has the chance to be accepted or if it would be refused since such a behavior is absolutely non-standard.
Activity
pjfanning commentedon Mar 11, 2026
I have no issue with adding a mechanism to do this.
He-Pin commentedon Mar 11, 2026
It would be nice to have, we just need keep the default option a standard.
sdeigm commentedon Mar 11, 2026
Ok, thanks for accepting this. I will provide a PR and for sure will keep the old standard as default.