From 21992779277cf6e5179e04ed7cca1c9866f1492c Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Thu, 25 Feb 2016 21:06:40 +0000 Subject: [PATCH] WebRequestUpload: Use canonical header name in getHeader() Follows-up I30263f552efe. No need to reflect internal detail of it being in uppercase (which might change). Use the canonical casing instead of improved reability. Also removes the illusion that this might be special (which uppercase strings might make you think). Change-Id: I7cecfdf5991e85c85862465a27a86af7bc8c0763 --- includes/WebRequestUpload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/WebRequestUpload.php b/includes/WebRequestUpload.php index 0881a16fca..c741907d3e 100644 --- a/includes/WebRequestUpload.php +++ b/includes/WebRequestUpload.php @@ -126,7 +126,7 @@ class WebRequestUpload { return true; } - $contentLength = $this->request->getHeader( 'CONTENT-LENGTH' ); + $contentLength = $this->request->getHeader( 'Content-Length' ); $maxPostSize = wfShorthandToInteger( ini_get( 'post_max_size' ) ?: ini_get( 'hhvm.server.max_post_size' ), 0 -- 2.20.1