diff --git a/src/MarketplaceWebService/Client.php b/src/MarketplaceWebService/Client.php index a050086..3c8b91f 100644 --- a/src/MarketplaceWebService/Client.php +++ b/src/MarketplaceWebService/Client.php @@ -892,8 +892,14 @@ private function performRequest($action, array $converted, $dataHandle = null, $ rewind($this->headerContents); $header = stream_get_contents($this->headerContents); - $parsedHeader = $this->parseHttpHeader($header); - + $parsedHeader = array_merge( + array( + 'x-mws-request-id' => null, + 'x-mws-response-context' => null, + 'x-mws-timestamp' => null + ), + $this->parseHttpHeader($header) + ); $responseHeaderMetadata = new MarketplaceWebService_Model_ResponseHeaderMetadata($parsedHeader['x-mws-request-id'], $parsedHeader['x-mws-response-context'], $parsedHeader['x-mws-timestamp']);