Skip to content

Commit 7d83dae

Browse files
authored
technitium: fix status code handling (#2357)
1 parent 8ed8207 commit 7d83dae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

providers/dns/technitium/internal/client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func (c *Client) do(req *http.Request, result any) error {
103103

104104
defer func() { _ = resp.Body.Close() }()
105105

106-
if resp.StatusCode > http.StatusBadRequest {
106+
if resp.StatusCode >= http.StatusBadRequest {
107107
return parseError(req, resp)
108108
}
109109

0 commit comments

Comments
 (0)