Skip to content

Commit 9374f45

Browse files
authored
Merge pull request php-vcr#410 from alexzabolotny/patch-1
Remove trailing semicolon in Content-Type header
2 parents 045d02c + fbeb9d4 commit 9374f45

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/VCR/LibraryHooks/SoapHook.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function doRequest(string $request, string $location, string $action, int
4444
$vcrRequest = new Request('POST', $location);
4545

4646
if (\SOAP_1_1 === $version) {
47-
$vcrRequest->setHeader('Content-Type', 'text/xml; charset=utf-8;');
47+
$vcrRequest->setHeader('Content-Type', 'text/xml; charset=utf-8');
4848
$vcrRequest->setHeader('SOAPAction', $action);
4949
} else { // >= SOAP_1_2
5050
$vcrRequest->setHeader(

tests/Unit/LibraryHooks/SoapHookTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function testShouldInterceptCallWhenEnabled(): void
4646
public function testShouldHandleSOAPVersion11(): void
4747
{
4848
$expectedHeaders = [
49-
'Content-Type' => 'text/xml; charset=utf-8;',
49+
'Content-Type' => 'text/xml; charset=utf-8',
5050
'SOAPAction' => 'http://ws.cdyne.com/WeatherWS/GetCityWeatherByZIP',
5151
];
5252
$this->soapHook->enable($this->getHeadersCheckCallback($expectedHeaders));

0 commit comments

Comments
 (0)