revert commit pushed by mistake

This commit is contained in:
vladimir
2022-11-24 18:20:40 +02:00
parent e260cc3f23
commit 225da9cc76

View File

@@ -70,9 +70,9 @@ func (hr *HTTPSResolver) Query(ctx context.Context, q *Query) (*RRCache, error)
if err != nil {
return nil, err
}
b64dns := base64.RawURLEncoding.EncodeToString(buf)
b64dns := base64.RawStdEncoding.EncodeToString(buf)
// Build and execute http request
// Build and execute http reuqest
url := &url.URL{
Scheme: "https",
Host: hr.resolver.ServerAddress,
@@ -94,10 +94,6 @@ func (hr *HTTPSResolver) Query(ctx context.Context, q *Query) (*RRCache, error)
_ = resp.Body.Close()
}()
if resp.StatusCode != http.StatusOK {
return nil, fmt.Errorf("http response code %s", resp.Status)
}
// Try to read the result
body, err := io.ReadAll(resp.Body)
if err != nil {