Skip to content

Commit

Permalink
Create Zttp.php
Browse files Browse the repository at this point in the history
Ignore ssl certificate checks when site url is https. Having issue with valet ssl
  • Loading branch information
sjmarve authored Jun 13, 2017
1 parent 06dac83 commit d3666d6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/Zttp.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,15 @@ function mergeOptions(...$options)
{
return array_merge_recursive($this->options, ...$options);
}


function ignoreSSLCert(){
return tap($this, function ($request) {
return $this->options = array_merge_recursive($this->options, [
'verify' => false
]);
});
}

function parseQueryParams($url)
{
return tap([], function (&$query) use ($url) {
Expand Down

0 comments on commit d3666d6

Please sign in to comment.