Browse Source

lib/upnp: Ensure uPnP http requests have trailing \r\n (#6193)

Aman Gupta 6 years ago
parent
commit
509d123251
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/upnp/upnp.go

+ 1 - 1
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)