commit 6e4b403662dcaf2bcf062b9389d0d4c5c06ec7ce
parent f0a9c1fe737b6b4eb5aaed3fb30fcd3cdbc6dbfe
Author: Joris Vink <joris@coders.se>
Date: Wed, 29 Jan 2014 22:59:58 +0100
Don't force the year in a HTTP-date to be the current year.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/utils.c b/src/utils.c
@@ -180,7 +180,7 @@ kore_date_to_time(char *http_date)
memset(&tm, 0, sizeof(tm));
tm.tm_year = kore_strtonum(args[3], 10, 1900, 2068, &err) - 1900;
- if (err == KORE_RESULT_ERROR || tm.tm_year < ltm->tm_year) {
+ if (err == KORE_RESULT_ERROR) {
kore_debug("misformed year in http-date: '%s'", http_date);
goto out;
}