Skip to content

Commit

Permalink
RemoveEmptyNodesMiddleware: reduce till evelope body (phpro#287)
Browse files Browse the repository at this point in the history
  • Loading branch information
ro0NL authored May 29, 2020
1 parent 8eb4740 commit d9c2924
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function beforeRequest(callable $handler, RequestInterface $request): Pro

private function getNotNodes(Xml $xml): ?\DOMNodeList
{
$notNodes = $xml->xpath('//*[not(node())]');
$notNodes = $xml->xpath('//soap:Envelope/*//*[not(node())]');
if (!$notNodes->length) {
return null;
}
Expand Down

0 comments on commit d9c2924

Please sign in to comment.