From 861c81e6e75bdd9ebb61e4c0bb179d80e2e44d7f Mon Sep 17 00:00:00 2001 From: Jack Robison <jackrobison@lbry.io> Date: Wed, 1 Aug 2018 21:10:28 -0400 Subject: [PATCH] xml --- txupnp/scpd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/txupnp/scpd.py b/txupnp/scpd.py index 77d0394..de59353 100644 --- a/txupnp/scpd.py +++ b/txupnp/scpd.py @@ -36,7 +36,7 @@ def xml_arg(name, arg): def get_soap_body(service_name, method, param_names, **kwargs): args = "".join(xml_arg(n, kwargs.get(n)) for n in param_names) - return '\n%s\n<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:%s xmlns:u="%s">%s</u:%s></s:Body></s:Envelope>' % (XML_VERSION, method, service_name, args, method) + return '\n%s\n<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:%s xmlns:u="%s">%s</u:%s></s:Body></s:Envelope></xml>' % (XML_VERSION, method, service_name, args, method) class _SCPDCommand(object):