lib/upnp: Ensure uPnP http requests have trailing \r\n (#6193)
This commit is contained in:
parent
b32821a586
commit
509d123251
@ -150,7 +150,7 @@ USER-AGENT: syncthing/1.0
|
|||||||
`
|
`
|
||||||
searchStr := fmt.Sprintf(tpl, deviceType, timeout/time.Second)
|
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)
|
l.Debugln("Starting discovery of device type", deviceType, "on", intf.Name)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user