Commit acd7bb0a authored by Francois Gannaz's avatar Francois Gannaz
Browse files

fix content-type in REST calls

parent ace7917a
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment