pages-server/server
Peter Gerber 59adfc2251
Use correct timestamp format for Last-Modified header
HTTP uses GMT [1,2] rather than UTC as timezone for timestamps. However,
the Last-Modified header used UTC which confused at least wget.

Before, UTC was used:

$ wget --no-check-certificate -S --spider https://cb_pages_tests.localhost.mock.directory:4430/images/827679288a.jpg
...
  Last-Modified: Sun, 11 Sep 2022 08:37:42 UTC
...
Last-modified header invalid -- time-stamp ignored.
...

After, GMT is used:

$ wget --no-check-certificate -S --spider https://cb_pages_tests.localhost.mock.directory:4430/images/827679288a.jpg
...
  Last-Modified: Sun, 11 Sep 2022 08:37:42 GMT
...
(no last-modified-header-invalid warning)

[1]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Last-Modified
[2]: https://www.rfc-editor.org/rfc/rfc9110#name-date-time-formats

Fixes #364
2024-07-15 21:39:23 +00:00
..
acme Add option to disable DNS ACME provider (#290) 2024-04-18 17:05:20 +00:00
cache Add config file and rework cli parsing and passing of config values (#263) 2024-02-15 16:08:29 +00:00
certificates Use hashicorp's LRU cache for DNS & certificates (#315) 2024-05-26 20:05:46 +00:00
context Security Fix: clean paths correctly to avoid circumvention of BlacklistedPaths 2023-08-27 10:13:15 +02:00
database Add option to disable DNS ACME provider (#290) 2024-04-18 17:05:20 +00:00
dns Use hashicorp's LRU cache for DNS & certificates (#315) 2024-05-26 20:05:46 +00:00
gitea Rename gitea to forge in cli args and env variables (#339) 2024-05-26 14:45:03 +00:00
handler Use hashicorp's LRU cache for DNS & certificates (#315) 2024-05-26 20:05:46 +00:00
upstream Use correct timestamp format for Last-Modified header 2024-07-15 21:39:23 +00:00
utils Security Fix: clean paths correctly to avoid circumvention of BlacklistedPaths 2023-08-27 10:13:15 +02:00
version Release via CI (#94) 2022-06-14 20:35:11 +02:00
profiling.go Add option to start http server for profiling (#323) 2024-04-30 19:50:03 +00:00
startup.go Use hashicorp's LRU cache for DNS & certificates (#315) 2024-05-26 20:05:46 +00:00