X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2FWebRequest.php;h=b4b8be9b159a9d4de007d7aff2ddc755b6bba3d1;hp=850f10103f6e3a28caa7b16d22c74a50d8617641;hb=3ab5510ef751d5c9e720fb299dc0163cdf2b4d39;hpb=90aa56ebce16a4a7c71db3ff3686a7e9921b1ba2 diff --git a/includes/WebRequest.php b/includes/WebRequest.php index 850f10103f..b4b8be9b15 100644 --- a/includes/WebRequest.php +++ b/includes/WebRequest.php @@ -871,7 +871,7 @@ class WebRequest { /** * Initialise the header list */ - private function initHeaders() { + protected function initHeaders() { if ( count( $this->headers ) ) { return; } @@ -1324,6 +1324,13 @@ class FauxRequest extends WebRequest { $this->protocol = $protocol; } + /** + * Initialise the header list + */ + protected function initHeaders() { + // Nothing to init + } + /** * @param string $name * @param string $default