Skip to content

Commit

Permalink
Fix Call to undefined function GuzzleHttp\Psr7\modify_request()
Browse files Browse the repository at this point in the history
  • Loading branch information
alcalyn authored Apr 23, 2021
1 parent 1296815 commit 8a6a6a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Common/Auth/AuthHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace OpenStack\Common\Auth;

use function GuzzleHttp\Psr7\modify_request;
use GuzzleHttp\Psr7\Utils;
use Psr\Http\Message\RequestInterface;

/**
Expand Down Expand Up @@ -53,7 +53,7 @@ public function __invoke(RequestInterface $request, array $options)

$modify = ['set_headers' => ['X-Auth-Token' => $this->token->getId()]];

return $fn(modify_request($request, $modify), $options);
return $fn(Utils::modifyRequest($request, $modify), $options);
}

/**
Expand Down

0 comments on commit 8a6a6a7

Please sign in to comment.