Commit f93eaa7d authored by Benni Mack's avatar Benni Mack
Browse files

[BUGFIX] Use proper PSR-7 response for SOAP responses

parent 89ece446
Pipeline #10001 failed with stages
in 3 minutes and 7 seconds
......@@ -143,11 +143,13 @@ class SoapEndpoint implements MiddlewareInterface
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>';
return new Response(
sprintf($faultStringXmlTemplate, $e->getCode(), $e->getMessage()),
$response = new Response('php://temp',
$statusCode,
['Content-Type' => 'text/xml; charset=utf-8']
);
$response->getBody()->rewind();
$response->getBody()->write($faultStringXmlTemplate);
return $response;
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment