This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fix mistake.

  • Loading branch information...
dianaprajescu committed May 25, 2012
1 parent 2bfba95 commit 20e7106ad452a91446945b4a441306acee51f25f
Showing with 1 addition and 1 deletion.
  1. +1 −1 libraries/joomla/http/transport/curl.php
@@ -74,7 +74,7 @@ public function request($method, JUri $uri, $data = null, array $headers = null,
if (isset($data))
{
// If the data is a scalar value simply add it to the cURL post fields.
- if (is_scalar($data) || (!isset($headers['Content-type']) && $headers['Content-type'] == 'multipart/form-data'))
+ if (is_scalar($data) || (isset($headers['Content-type']) && $headers['Content-type'] == 'multipart/form-data'))
{
$options[CURLOPT_POSTFIELDS] = $data;
}

0 comments on commit 20e7106

Please sign in to comment.