diff --git a/library/Requests.php b/library/Requests.php index 4c7e93217..4ec11cb7d 100755 --- a/library/Requests.php +++ b/library/Requests.php @@ -564,6 +564,9 @@ protected static function set_defaults(&$url, &$headers, &$data, &$type, &$optio $url = $iri->uri; } + // Massage the type to ensure we support it. + $type = strtoupper($type); + if (!isset($options['data_format'])) { if (in_array($type, array(self::HEAD, self::GET, self::DELETE))) { $options['data_format'] = 'query';