Commit 7e09936f authored by Nigel McNie's avatar Nigel McNie
Browse files

[#2989] Fix MNET when the Moodle side is running lighttpd. Patch thanks to Chris Bandy.

parent 0dc059b9
...@@ -63,7 +63,7 @@ class Client { ...@@ -63,7 +63,7 @@ class Client {
curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_USERAGENT, 'Mahara'); curl_setopt($ch, CURLOPT_USERAGENT, 'Mahara');
curl_setopt($ch, CURLOPT_POSTFIELDS, $this->encryptedrequest); curl_setopt($ch, CURLOPT_POSTFIELDS, $this->encryptedrequest);
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: text/xml charset=UTF-8")); curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: text/xml charset=UTF-8", 'Expect: '));
$timestamp_send = time(); $timestamp_send = time();
$this->rawresponse = curl_exec($ch); $this->rawresponse = curl_exec($ch);
......
...@@ -426,7 +426,7 @@ function get_public_key($uri, $application=null) { ...@@ -426,7 +426,7 @@ function get_public_key($uri, $application=null) {
curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_USERAGENT, 'Moodle'); curl_setopt($ch, CURLOPT_USERAGENT, 'Moodle');
curl_setopt($ch, CURLOPT_POSTFIELDS, $rq); curl_setopt($ch, CURLOPT_POSTFIELDS, $rq);
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: text/xml charset=UTF-8")); curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: text/xml charset=UTF-8", 'Expect: '));
$raw = curl_exec($ch); $raw = curl_exec($ch);
if (empty($raw)) { if (empty($raw)) {
......
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