btcd: fix conversion of int to string failing in Go 1.15
This commit is contained in:
parent
90a5c7997c
commit
d13e907952
1 changed files with 2 additions and 1 deletions
3
upnp.go
3
upnp.go
|
@ -36,6 +36,7 @@ import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"encoding/xml"
|
"encoding/xml"
|
||||||
"errors"
|
"errors"
|
||||||
|
"fmt"
|
||||||
"net"
|
"net"
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
|
@ -229,7 +230,7 @@ func getServiceURL(rootURL string) (url string, err error) {
|
||||||
}
|
}
|
||||||
defer r.Body.Close()
|
defer r.Body.Close()
|
||||||
if r.StatusCode >= 400 {
|
if r.StatusCode >= 400 {
|
||||||
err = errors.New(string(r.StatusCode))
|
err = errors.New(fmt.Sprint(r.StatusCode))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
var root root
|
var root root
|
||||||
|
|
Loading…
Reference in a new issue