Closed yvesdm3000 closed 3 weeks ago
Attention: Patch coverage is 94.11765%
with 1 line
in your changes missing coverage. Please review.
Project coverage is 78.49%. Comparing base (
7cc8732
) to head (3e580e4
). Report is 26 commits behind head on master.
Files | Patch % | Lines |
---|---|---|
include/pistache/http_header.h | 85.71% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Looks fine to me. Thanks @yvesdm3000. @Tachi107?
Thanks for the patch :D
Support for the "Last-Modified" header.
To note is that this header is required to be in GMT timezone. The "date" library used by Pistache doesn't support timezones so the stdlib version of gmtime() on a time_t is used to convert the time to GMT. Without this conversion it is difficult to have this value in the older GMT since most users work with the identical UTC tz but that would result in an incorrect header string ("UTC" instead of "GMT".
Complete with a unit test.