Skip to content

Commit

Permalink
add Content-Type to requests
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjurek committed Sep 12, 2018
1 parent ee92faa commit f7ea149
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "digitalvirgo/directpay",
"version": "0.1.0",
"version": "0.1.1",
"type": "library",
"authors": [
{
Expand Down
5 changes: 4 additions & 1 deletion src/Service/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,10 @@ protected function _request($url, Request\RequestAbstract $request)
$stream = Stream::factory($xml);

$response = $this->post($url, array(
'body' => $stream
'body' => $stream,
'headers' => array(
'Content-Type' => 'application/xml'
)
));

/** @var \GuzzleHttp\Stream\Stream $body */
Expand Down

0 comments on commit f7ea149

Please sign in to comment.