BUG: Format Last-Modified Header not a valid standard

Greetings!

The Last-Modified response header returns a non-standard formatted date at the moment.

Consider the following Last-Modified value, taken from the Game Data APIs:
Sun, 1 Mar 2020 15:06:18 GMT

The closest standard format is RFC1123, but this format requires the date field to be padded with a 0 for single digit days. A valid RFC1123 formatted date would be:
Sun, 01 Mar 2020 15:06:18 GMT

For clarity, see the following example on the Go Playground: https://play.golang.org/p/kCTFOSngr77

It is not a major problem since it is easy to create a workaround, but you might be under the impression that the Last-Modified header adheres to the RFC1123 format. Especially since double digit days do parse.

1 Like

Hi Leet,

We are taking a deeper look at this.

Thank you for the feedback/report.