From 2cdbb1670cd0c147aed9dd71d14c03cfe9409520 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Mon, 8 Oct 2018 18:07:01 -0400 Subject: [PATCH] quotes? --- aioupnp/protocols/ssdp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aioupnp/protocols/ssdp.py b/aioupnp/protocols/ssdp.py index 9573726..5f65908 100644 --- a/aioupnp/protocols/ssdp.py +++ b/aioupnp/protocols/ssdp.py @@ -28,8 +28,8 @@ class SSDPProtocol(MulticastProtocol): if (address, service) in self.discover_callbacks: return self.discover_callbacks[(address, service)] packet = SSDPDatagram( - SSDPDatagram._M_SEARCH, host="{}:{}".format(SSDP_IP_ADDRESS, SSDP_PORT), st=service, man=SSDP_DISCOVER, - mx=1 + SSDPDatagram._M_SEARCH, host="{}:{}".format(SSDP_IP_ADDRESS, SSDP_PORT), st=service, + man="\"%s\"" % SSDP_DISCOVER, mx=1 ) log.debug("sending packet to %s:%i: %s", address, SSDP_PORT, packet) self.transport.sendto(packet.encode().encode(), (address, SSDP_PORT))