Skip to content

Commit

Permalink
Merge pull request #143 from bugsnag/security
Browse files Browse the repository at this point in the history
  • Loading branch information
kattrali authored Jul 18, 2016
2 parents ef5e859 + e9c64a4 commit 59cf2da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion config/bugsnag.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@
*/

'proxy' => array_filter([
'http' => env('HTTP_PROXY'),
'https' => env('HTTPS_PROXY'),
'no' => explode(',', str_replace(' ', '', env('NO_PROXY', ''))) ?: null,
]),
Expand Down
4 changes: 4 additions & 0 deletions src/BugsnagServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ public function register()
$options = ['base_uri' => isset($config['endpoint']) ? $config['endpoint'] : Client::ENDPOINT];

if (isset($config['proxy']) && $config['proxy']) {
if (isset($config['proxy']['http']) && php_sapi_name() != 'cli') {
unset($config['proxy']['http']);
}

$options['proxy'] = $config['proxy'];
}

Expand Down

0 comments on commit 59cf2da

Please sign in to comment.