mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 14:50:56 +00:00
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)
|
||||
|
||||
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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user