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"
|
||||
"encoding/xml"
|
||||
"errors"
|
||||
"fmt"
|
||||
"net"
|
||||
"net/http"
|
||||
"os"
|
||||
|
@ -229,7 +230,7 @@ func getServiceURL(rootURL string) (url string, err error) {
|
|||
}
|
||||
defer r.Body.Close()
|
||||
if r.StatusCode >= 400 {
|
||||
err = errors.New(string(r.StatusCode))
|
||||
err = errors.New(fmt.Sprint(r.StatusCode))
|
||||
return
|
||||
}
|
||||
var root root
|
||||
|
|
Loading…
Reference in a new issue