diff --git a/src/aphront/AphrontRequest.php b/src/aphront/AphrontRequest.php index f8b01eb94c..3a95b0ebda 100644 --- a/src/aphront/AphrontRequest.php +++ b/src/aphront/AphrontRequest.php @@ -756,6 +756,7 @@ final class AphrontRequest extends Phobject { foreach ($_SERVER as $key => $value) { if (preg_match('/^HTTP_/', $key)) { // Unmangle the header as best we can. + $key = substr($key, strlen('HTTP_')); $key = str_replace('_', ' ', $key); $key = strtolower($key); $key = ucwords($key);