From 509d123251ac107f0baff08fd272dc84b7b7d624 Mon Sep 17 00:00:00 2001 From: Aman Gupta Date: Tue, 26 Nov 2019 14:54:46 -0800 Subject: [PATCH] lib/upnp: Ensure uPnP http requests have trailing \r\n (#6193) --- lib/upnp/upnp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/upnp/upnp.go b/lib/upnp/upnp.go index 98cca31d..34e1b4d3 100644 --- a/lib/upnp/upnp.go +++ b/lib/upnp/upnp.go @@ -150,7 +150,7 @@ USER-AGENT: syncthing/1.0 ` searchStr := fmt.Sprintf(tpl, deviceType, timeout/time.Second) - search := []byte(strings.Replace(searchStr, "\n", "\r\n", -1)) + search := []byte(strings.Replace(searchStr, "\n", "\r\n", -1) + "\r\n") l.Debugln("Starting discovery of device type", deviceType, "on", intf.Name)