MDL-39461 badges: Fix cURL expectation failed error when trying to connect to backpack
authorYuliya Bozhko <yuliya.bozhko@totaralms.com>
Mon, 22 Jul 2013 20:21:04 +0000 (08:21 +1200)
committerYuliya Bozhko <yuliya.bozhko@totaralms.com>
Mon, 22 Jul 2013 20:21:04 +0000 (08:21 +1200)
badges/lib/backpacklib.php

index 58a9b74..4ecf084 100644 (file)
@@ -60,10 +60,11 @@ class OpenBadgesBackpackHandler {
         }
 
         $options = array(
         }
 
         $options = array(
-            'FRESH_CONNECT' => true,
+            'FRESH_CONNECT'  => true,
             'RETURNTRANSFER' => true,
             'RETURNTRANSFER' => true,
-            'FORBID_REUSE' => true,
-            'HEADER' => 0,
+            'FORBID_REUSE'   => true,
+            'HEADER'         => 0,
+            'HTTPHEADER'     => array('Expect:'),
             'CONNECTTIMEOUT' => 3,
         );
 
             'CONNECTTIMEOUT' => 3,
         );