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

This commit is contained in:
Aman Gupta 2019-11-26 14:54:46 -08:00 committed by Audrius Butkevicius
parent b32821a586
commit 509d123251

View File

@ -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)