Skip to content

Commit

Permalink
allowing explicit redirect levels
Browse files Browse the repository at this point in the history
  • Loading branch information
padams committed Jan 24, 2022
1 parent 90e6226 commit 5e89e07
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion owa_httpRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,13 @@ function getRequest($url, $arguments = '') {
$request = new Request('GET', trim( $url ) );
$this->response = $this->http->send( $request, [

'allow_redirects' => true,
'allow_redirects' => [
'max' => 5,
'strict' => false,
'referer' => false,
'protocols' => ['http', 'https'],
'track_redirects' => false
],
'headers' => [

'User-Agent' => owa_coreAPI::getSetting('base', 'owa_user_agent')
Expand Down

0 comments on commit 5e89e07

Please sign in to comment.