]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: sample: http_date() doesn't provide the right day of the week
authorCyril Bonté <cyril.bonte@free.fr>
Fri, 22 Jan 2016 18:40:28 +0000 (19:40 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 22 Jan 2016 18:52:31 +0000 (19:52 +0100)
commitf78d8967d791064c1148fe4efc07dee28e79d0db
tree65a081bc32f4eafe4fba6995d1c8822bc72037c8
parent3b90f0a267a086fd590102e8cdcc7a258b31c636
BUG/MEDIUM: sample: http_date() doesn't provide the right day of the week

Gregor KovaÄ\8d reported that http_date() did not return the right day of the
week. For example "Sat, 22 Jan 2016 17:43:38 GMT" instead of "Fri, 22 Jan
2016 17:43:38 GMT". Indeed, gmtime() returns a 'struct tm' result, where
tm_wday begins on Sunday, whereas the code assumed it began on Monday.

This patch must be backported to haproxy 1.5 and 1.6.
src/proto_http.c