Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OpenApi-Papyros-PHP-Clients
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Σταύρος Παπαδάκης
OpenApi-Papyros-PHP-Clients
Commits
f95d141d
Commit
f95d141d
authored
8 years ago
by
Σταύρος Παπαδάκης
Browse files
Options
Downloads
Patches
Plain Diff
Add CURLOPT_SSL_VERIFYHOST
parent
3ae2cbbc
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
slim-app/src/osteam/Client.php
+2
-1
2 additions, 1 deletion
slim-app/src/osteam/Client.php
with
2 additions
and
1 deletion
slim-app/src/osteam/Client.php
+
2
−
1
View file @
f95d141d
...
...
@@ -84,8 +84,9 @@ class Client
{
curl_setopt
(
$ch
,
CURLOPT_URL
,
$uri
);
curl_setopt
(
$ch
,
CURLOPT_HTTPHEADER
,
$headers
);
curl_setopt
(
$ch
,
CURLOPT_USERAGENT
,
"OSTEAM
barebone
php client"
);
curl_setopt
(
$ch
,
CURLOPT_USERAGENT
,
"OSTEAM
SLIM
php client"
);
if
(
isset
(
$this
->
_settings
[
'NO_SAFE_CURL'
])
&&
$this
->
_settings
[
'NO_SAFE_CURL'
]
===
true
)
{
curl_setopt
(
$ch
,
CURLOPT_SSL_VERIFYHOST
,
false
);
curl_setopt
(
$ch
,
CURLOPT_SSL_VERIFYPEER
,
false
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment