diff --git a/src/Control/HTTPRequestBuilder.php b/src/Control/HTTPRequestBuilder.php index dcc307c27..a79f95782 100644 --- a/src/Control/HTTPRequestBuilder.php +++ b/src/Control/HTTPRequestBuilder.php @@ -17,13 +17,10 @@ class HTTPRequestBuilder { // Clean and update live global variables $variables = static::cleanEnvironment(Environment::getVariables()); - - // Health-check prior to creating environment - $req = static::createFromVariables($variables, @file_get_contents('php://input')); - Environment::setVariables($variables); // Currently necessary for SSViewer, etc to work - return $req; + // Health-check prior to creating environment + return static::createFromVariables($variables, @file_get_contents('php://input')); } /** @@ -140,4 +137,4 @@ class HTTPRequestBuilder return $variables; } -} \ No newline at end of file +}