Skip to content
This repository has been archived by the owner on Aug 17, 2023. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/upgrade_guzzle' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
holyshared committed May 29, 2015
2 parents cb68bbc + e0e52e3 commit 4a47e23
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spec/CoverallsReportTransfer.spec.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@

$url = CoverallsReportTransfer::ENDPOINT_URL;
$optionsCallback = Argument::that(function(array $options) {
return isset($options['body']);
return isset($options['multipart']);
});

$this->prophet = new Prophet();
Expand Down
7 changes: 5 additions & 2 deletions src/CoverallsReportTransfer.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,11 @@ public function upload(ReportEntity $report)

$client = $this->getClient();
$client->request(self::HTTP_METHOD, self::ENDPOINT_URL, [
'body' => [
self::JSON_FILE_POST_FIELD_NAME => $stream
'multipart' => [
[
'name' => self::JSON_FILE_POST_FIELD_NAME,
'contents' => $stream
]
]
]);
}
Expand Down

0 comments on commit 4a47e23

Please sign in to comment.