Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nico
piphone-front
Commits
b20072c4
Commit
b20072c4
authored
Aug 07, 2016
by
okhin
Browse files
Update Api.php
parent
5416d643
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Api.php
View file @
b20072c4
...
...
@@ -11,7 +11,7 @@ class Api {
curl_setopt
(
$curl
,
CURLOPT_URL
,
$url
);
curl_setopt
(
$curl
,
CURLOPT_HTTPHEADER
,
array
(
'Content-type: application/json'
));
curl_setopt
(
$curl
,
CURLOPT_RETURNTRANSFER
,
true
);
curl_setopt
(
$c
h
,
CURLOPT_FOLLOWLOCATION
,
1
);
curl_setopt
(
$c
url
,
CURLOPT_FOLLOWLOCATION
,
1
);
$result
=
curl_exec
(
$curl
);
curl_close
(
$curl
);
return
$result
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment