From f7ea1494fec56a81fd7d31c2d43165e587ebfd2f Mon Sep 17 00:00:00 2001 From: ajurek Date: Wed, 12 Sep 2018 12:36:59 +0200 Subject: [PATCH] add `Content-Type` to requests --- composer.json | 2 +- src/Service/Client.php | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index d1b3a34..7a0df34 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "digitalvirgo/directpay", - "version": "0.1.0", + "version": "0.1.1", "type": "library", "authors": [ { diff --git a/src/Service/Client.php b/src/Service/Client.php index 00dd778..ad6c0d4 100644 --- a/src/Service/Client.php +++ b/src/Service/Client.php @@ -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 */