WebRequestUpload: Use canonical header name in getHeader()
authorTimo Tijhof <krinklemail@gmail.com>
Thu, 25 Feb 2016 21:06:40 +0000 (21:06 +0000)
committerTimo Tijhof <krinklemail@gmail.com>
Thu, 25 Feb 2016 21:06:40 +0000 (21:06 +0000)
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

index 0881a16..c741907 100644 (file)
@@ -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