Permalink
Browse files

Merge pull request #278 from tarasfrompir/master

Update Core.php
  • Loading branch information...
T-REX-XP committed Sep 13, 2018
2 parents a0a2e4d + f26792e commit f9254d96083f411cf21563c18f3ad6e4354acb26
Showing with 2 additions and 2 deletions.
  1. +2 −2 modules/ssdp_finder/upnp/vendor/jalder/upnp/src/Core.php
@@ -148,7 +148,7 @@ public function sendRequestToDevice($method, $arguments, $url, $type, $hostIp =
$body ='<?xml version="1.0" encoding="utf-8"?>' . "\r\n";
$body .='<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">';
$body .='<s:Body>';
$body .='<u:'.$method.' xmlns:u="urn:schemas-upnp-org:service:'.$type.'">';
$body .='<u:'.$method.' xmlns:u="urn:schemas-upnp-org:service:'.$type.':1">';
foreach( $arguments as $arg=>$value ) {
$body .='<'.$arg.'>'.$value.'</'.$arg.'>';
}
@@ -162,7 +162,7 @@ public function sendRequestToDevice($method, $arguments, $url, $type, $hostIp =
'Content-Length: ' . strlen($body),
'Connection: close',
'Content-Type: text/xml; charset="utf-8"',
'SOAPAction: "urn:schemas-upnp-org:service:'.$type.'#'.$method.'"',
'SOAPAction: "urn:schemas-upnp-org:service:'.$type.':1#'.$method.'"',
);
$ch = curl_init();

0 comments on commit f9254d9

Please sign in to comment.