btcd: remove commented-out code
Found using https://go-critic.github.io/overview#commentedOutCode-ref
This commit is contained in:
parent
e3d3088b80
commit
009f199317
1 changed files with 0 additions and 2 deletions
2
upnp.go
2
upnp.go
|
@ -298,7 +298,6 @@ func soapRequest(url, function, message string) (replyXML []byte, err error) {
|
|||
}
|
||||
req.Header.Set("Content-Type", "text/xml ; charset=\"utf-8\"")
|
||||
req.Header.Set("User-Agent", "Darwin/10.0.0, UPnP/1.0, MiniUPnPc/1.3")
|
||||
//req.Header.Set("Transfer-Encoding", "chunked")
|
||||
req.Header.Set("SOAPAction", "\"urn:schemas-upnp-org:service:WANIPConnection:1#"+function+"\"")
|
||||
req.Header.Set("Connection", "Close")
|
||||
req.Header.Set("Cache-Control", "no-cache")
|
||||
|
@ -313,7 +312,6 @@ func soapRequest(url, function, message string) (replyXML []byte, err error) {
|
|||
}
|
||||
|
||||
if r.StatusCode >= 400 {
|
||||
// log.Stderr(function, r.StatusCode)
|
||||
err = errors.New("Error " + strconv.Itoa(r.StatusCode) + " for " + function)
|
||||
r = nil
|
||||
return
|
||||
|
|
Loading…
Add table
Reference in a new issue