Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
Merge pull request #11 from NZTA/bugfix/remove-tcp-prefix
Browse files Browse the repository at this point in the history
Bugfix/remove tcp prefix
  • Loading branch information
NZ Transport Agency authored Jul 8, 2020
2 parents f60deff + f08fd54 commit 2bc0247
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/gateway/OktaGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ public function get($endpoint)
$proxyPort = Environment::getEnv('SS_OUTBOUND_PROXY_PORT');
$proxy = [
'proxy' => [
'http' => sprintf('tcp://%s:%s', $proxy, $proxyPort), // Use this proxy with "http"
'https' => sprintf('tcp://%s:%s', $proxy, $proxyPort), // Use this proxy with "https",
'http' => sprintf('%s:%s', $proxy, $proxyPort), // Use this proxy with "http"
'https' => sprintf('%s:%s', $proxy, $proxyPort), // Use this proxy with "https",
],
];
}
Expand Down
2 changes: 1 addition & 1 deletion src/services/OktaService.php
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ public function getUsersFromGroup($limit, $after, $groupID)
private function getAfterFromLinkHeader($data)
{
$after = null;
$linkHeader = (isset($data['Headers']['Link'])) ? $data['Headers']['Link'] : null;
$linkHeader = (isset($data['Headers']['link'])) ? $data['Headers']['link'] : null;

// parse the "Link" header
if ($linkHeader) {
Expand Down

0 comments on commit 2bc0247

Please sign in to comment.