Skip to content

Commit 43bca40

Browse files
committed
multipart/form-data header is set by cURL automatically
1 parent e942da3 commit 43bca40

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

src/ConversionClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
class ConversionClient
66
{
7-
const VERSION = '1.0.2';
7+
const VERSION = '1.0.3';
88

99
public static $userAgent = 'conversiontools-php';
1010

src/Request.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ public static function requestAPI($method, $url, $data=NULL)
9090
public static function uploadAPI($url, $filename)
9191
{
9292
$headers = self::prepareHeaders();
93-
array_push($headers, 'Content-Type: multipart/form-data');
9493
if (function_exists('curl_file_create')) { // For PHP 5.5+
9594
$file = curl_file_create($filename);
9695
} else {

0 commit comments

Comments
 (0)