Skip to content

Commit

Permalink
technitium: fix status code handling (#2357)
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez authored Nov 21, 2024
1 parent 8ed8207 commit 7d83dae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/dns/technitium/internal/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func (c *Client) do(req *http.Request, result any) error {

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

if resp.StatusCode > http.StatusBadRequest {
if resp.StatusCode >= http.StatusBadRequest {
return parseError(req, resp)
}

Expand Down

0 comments on commit 7d83dae

Please sign in to comment.