diff --git a/internal/upnp/upnp.go b/internal/upnp/upnp.go index 20e8bc30f..f9e2f42d7 100644 --- a/internal/upnp/upnp.go +++ b/internal/upnp/upnp.go @@ -454,7 +454,7 @@ func soapRequest(url, service, function, message string) ([]byte, error) { } req.Header.Set("Content-Type", `text/xml; charset="utf-8"`) req.Header.Set("User-Agent", "syncthing/1.0") - req.Header["SOAPAction"]=[]string{fmt.Sprintf(`"%s#%s"`, service, function)} // Enforce capitalization in header-entry for sensitive routers. See issue #1696 + req.Header["SOAPAction"] = []string{fmt.Sprintf(`"%s#%s"`, service, function)} // Enforce capitalization in header-entry for sensitive routers. See issue #1696 req.Header.Set("Connection", "Close") req.Header.Set("Cache-Control", "no-cache") req.Header.Set("Pragma", "no-cache")