mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX ensure createFromVariables takes correct params on CLIRequestBuilder
This commit is contained in:
parent
66c09afc9c
commit
4da5569232
@ -74,9 +74,9 @@ class CLIRequestBuilder extends HTTPRequestBuilder
|
||||
* @param string $input
|
||||
* @return HTTPRequest
|
||||
*/
|
||||
public static function createFromVariables(array $variables, $input)
|
||||
public static function createFromVariables(array $variables, $input, $url = null)
|
||||
{
|
||||
$request = parent::createFromVariables($variables, $input);
|
||||
$request = parent::createFromVariables($variables, $input, $url);
|
||||
// unset scheme so that SS_BASE_URL can provide `is_https` information if required
|
||||
$scheme = parse_url(Environment::getEnv('SS_BASE_URL'), PHP_URL_SCHEME);
|
||||
$request->setScheme($scheme);
|
||||
|
Loading…
Reference in New Issue
Block a user