From 90e55e41118465afcdbaf69bd6886c1899623d18 Mon Sep 17 00:00:00 2001 From: tnasu Date: Mon, 14 Nov 2022 15:17:37 +0900 Subject: [PATCH] fix: Update the http status code handling on upnp --- p2p/upnp/upnp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2p/upnp/upnp.go b/p2p/upnp/upnp.go index 5f0f2c335..eadd0c0bb 100644 --- a/p2p/upnp/upnp.go +++ b/p2p/upnp/upnp.go @@ -285,7 +285,7 @@ func soapRequest(url, function, message, domain string) (r *http.Response, err e defer r.Body.Close() }*/ - if r.StatusCode >= 400 { + if r.StatusCode != http.StatusOK { // log.Stderr(function, r.StatusCode) err = errors.New("error " + strconv.Itoa(r.StatusCode) + " for " + function) r = nil