Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LabNbook
LabNbook-Moodle
Commits
acd7bb0a
Commit
acd7bb0a
authored
Mar 12, 2019
by
Francois Gannaz
Browse files
fix content-type in REST calls
parent
ace7917a
Changes
1
Hide whitespace changes
Inline
Side-by-side
classes/session.php
View file @
acd7bb0a
...
...
@@ -202,7 +202,7 @@ class mod_labnbook_session
CURLOPT_RETURNTRANSFER
=>
true
,
CURLOPT_CUSTOMREQUEST
=>
$verb
,
CURLOPT_URL
=>
$this
->
url
.
"/api/index.php"
.
$urlPath
,
CURLOPT_HTTPHEADER
,
[
'Content-Type:application/json'
,
'Accept:application/json'
],
CURLOPT_HTTPHEADER
=>
[
'Content-Type:
application/json'
,
'Accept:
application/json'
],
CURLOPT_POSTFIELDS
=>
json_encode
(
$payload
),
]);
$response
=
curl_exec
(
$curl
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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