Skip to content

Commit

Permalink
Merge pull request #12 from masakik/issue_11
Browse files Browse the repository at this point in the history
Fix #11 biblioteca não suporta http 2
  • Loading branch information
masakik authored Apr 14, 2020
2 parents 5adcecf + 2d53c76 commit a297a19
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ O token pode ser usado para várias aplicações por meio do callback_id cadastr
Deve-se criar uma rota (/loginusp por exemplo) com o seguinte código:

```php
require_once('../vendor/autoload.php');
require_once '../vendor/autoload.php';

$auth = new Uspdev\Senhaunica\Senhaunica([
'consumer_key' => 'aaaa',
Expand Down
5 changes: 4 additions & 1 deletion src/Senhaunica.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
class Senhaunica
{

protected $curl_options = array(CURLOPT_SSL_VERIFYPEER => false);
protected $curl_options = array(
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_HTTP_VERSION=>CURL_HTTP_VERSION_1_1
);

public function __construct($oauth)
{
Expand Down

0 comments on commit a297a19

Please sign in to comment.