Explorar o código

Formatting with gofmt

jarlebring %!s(int64=10) %!d(string=hai) anos
pai
achega
d9da02b7a8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      internal/upnp/upnp.go

+ 1 - 1
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("Content-Type", `text/xml; charset="utf-8"`)
 	req.Header.Set("User-Agent", "syncthing/1.0")
 	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("Connection", "Close")
 	req.Header.Set("Cache-Control", "no-cache")
 	req.Header.Set("Cache-Control", "no-cache")
 	req.Header.Set("Pragma", "no-cache")
 	req.Header.Set("Pragma", "no-cache")