Skip to content

Commit

Permalink
Merge pull request #2 from libp2p/fix/go1.15
Browse files Browse the repository at this point in the history
ReadAll from ioutil for older go versions
  • Loading branch information
vyzo authored Apr 12, 2021
2 parents 5933266 + 6b953ae commit 73c190e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions request.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bytes"
"context"
"fmt"
"io"
"io/ioutil"
"net"
"net/http"

Expand Down Expand Up @@ -49,7 +49,7 @@ func doRequest(ctx context.Context, url string, m *dns.Msg) (*dns.Msg, error) {
return nil, fmt.Errorf("unexpected Content-Type %q", ct)
}

body, err := io.ReadAll(resp.Body)
body, err := ioutil.ReadAll(resp.Body)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 73c190e

Please sign in to comment.