Skip to content

Commit 2048c87

Browse files
committed
Fix deprecated RFC
1 parent f9979d8 commit 2048c87

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

frameworks/PHP/cakephp/server.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
class HeaderDate
2828
{
29-
const NAME = 'Date: ';
29+
const DATE_FORMAT = 'D, d M Y H:i:s \G\M\T';
3030

3131
/**
3232
* Date header
@@ -37,9 +37,9 @@ class HeaderDate
3737

3838
public static function init(): void
3939
{
40-
self::$date = self::NAME.gmdate(DATE_RFC7231);
40+
self::$date = 'Date: '.gmdate(self::DATE_FORMAT);
4141
Timer::add(1, static function () {
42-
self::$date = self::NAME.gmdate(DATE_RFC7231);
42+
self::$date = 'Date: '.gmdate(self::DATE_FORMAT);
4343
});
4444
}
4545
}

0 commit comments

Comments
 (0)