Skip to content

Commit

Permalink
refactor(OrbitClient): Update Forge Environment for Stage (#25)
Browse files Browse the repository at this point in the history
refator(OrbitClient): Update Forge Environment for Stage

## Change
- updates headers for Orbit Client to have `forge-free` in stage environment

## JIRA
https://jira.dev.bbc.co.uk/browse/DATCAP-80
  • Loading branch information
bbc-kellys authored Oct 27, 2020
1 parent 4c25f00 commit 8079648
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/OrbitClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ private function getRequestHeaders(array $options)
}
if ($this->options['env'] === 'stage') {
$headers['x-forge-environment'] = 'stage';
empty($headers['X-Feature']) ? $headers['X-Feature'] = 'forge-free' : $headers['X-Feature'] .= ', forge-free';
}
return $headers;
}
Expand Down

0 comments on commit 8079648

Please sign in to comment.