Skip to content

Commit

Permalink
Merge pull request #110 from zluiten/issue_109_chunky_upload_not_supp…
Browse files Browse the repository at this point in the history
…orted_by_http_10

rename api version config key to not interfer with http protocol version
  • Loading branch information
MohammadWaleed authored May 23, 2023
2 parents 22ef316 + 149a9ba commit e66991b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Admin/KeycloakClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,10 +303,10 @@ class KeycloakClient extends GuzzleClient
public static function factory($config = array())
{
$default = array(
'apiVersion' => '1.0',
'username' => null,
'password' => null,
'realm' => 'master',
'version' => '1.0',
'baseUri' => null,
'verify' => true,
'token_storage' => new RuntimeTokenStorage(),
Expand All @@ -315,7 +315,7 @@ public static function factory($config = array())
// Create client configuration
$config = self::parseConfig($config, $default);

$file = 'keycloak-' . str_replace('.', '_', $config['version']) . '.php';
$file = 'keycloak-' . str_replace('.', '_', $config['apiVersion']) . '.php';

$stack = new HandlerStack();
$stack->setHandler(new CurlHandler());
Expand Down Expand Up @@ -416,7 +416,7 @@ public function getRealmName()
*/
public function setVersion($version)
{
$this->setConfig('version', $version);
$this->setConfig('apiVersion', $version);
}

/**
Expand All @@ -426,7 +426,7 @@ public function setVersion($version)
*/
public function getVersion()
{
return $this->getConfig('version');
return $this->getConfig('apiVersion');
}


Expand Down

0 comments on commit e66991b

Please sign in to comment.