Better wording for failed DoH request.
Co-authored-by: Daniel Hovie <dhaavi@users.noreply.github.com>
This commit is contained in:
@@ -95,7 +95,7 @@ func (hr *HTTPSResolver) Query(ctx context.Context, q *Query) (*RRCache, error)
|
|||||||
}()
|
}()
|
||||||
|
|
||||||
if resp.StatusCode != http.StatusOK {
|
if resp.StatusCode != http.StatusOK {
|
||||||
return nil, fmt.Errorf("http response code %s", resp.Status)
|
return nil, fmt.Errorf("http request failed with %s", resp.Status)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Try to read the result
|
// Try to read the result
|
||||||
|
|||||||
Reference in New Issue
Block a user