Skip to content

Commit

Permalink
fix: Update the http status code handling on upnp
Browse files Browse the repository at this point in the history
  • Loading branch information
tnasu committed Nov 14, 2022
1 parent 0681636 commit 90e55e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/upnp/upnp.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 90e55e4

Please sign in to comment.