diff --git a/src/Httpful/Request.php b/src/Httpful/Request.php index 3341dff..f287077 100644 --- a/src/Httpful/Request.php +++ b/src/Httpful/Request.php @@ -383,12 +383,11 @@ public function expectsType($mime) public function attach($files) { foreach ($files as $key => $file) { if (function_exists('curl_file_create')) { - $this->payload[$key] = curl_file_create($file);; + $this->payload[$key] = curl_file_create($file); } else { $this->payload[$key] = "@{$file}"; } } - $this->sendsType(Mime::UPLOAD); return $this; }