fix: Remove redundant newline in UPnP POST request

This commit is contained in:
Mike Wang
2025-10-08 04:45:29 +08:00
parent 80f616de2a
commit 46a38c3056

View File

@@ -1125,7 +1125,7 @@ class UPnPService(object):
"Content-Length: %d\r\n"
"Connection: close\r\n"
"\r\n"
"%s\r\n" % (ctl_path, ctl_hostname, ctl_port, self.service_type, content_len, content)
"%s" % (ctl_path, ctl_hostname, ctl_port, self.service_type, content_len, content)
).encode()
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
try: