Skip to content

Commit

Permalink
Merge ddadc19 into a68b0f6
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperg committed Jan 16, 2014
2 parents a68b0f6 + ddadc19 commit faa6b91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/VCR/LibraryHooks/Soap.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ public function doRequest($request, $location, $action, $version, $one_way = 0)
}

$vcrRequest = new Request('POST', $location);
$vcrRequest->addHeader('Content-Type', 'application/soap+xml; charset=utf-8; action="' . $action . '"');
$contentType = ($version == SOAP_1_2) ? 'application/soap+xml' : 'text/xml';
$vcrRequest->addHeader('Content-Type', $contentType . '; charset=utf-8; action="' . $action . '"');
$vcrRequest->setBody($request);

$handleRequestCallback = self::$handleRequestCallback;
Expand Down

0 comments on commit faa6b91

Please sign in to comment.