Content-Length: 216769 | pFad | http://github.com/nicklaw5/helix/commit/e86910f6e0992337c22d3f5f46f1dd6761a1e599

DD fix: deprecate ioutil · nicklaw5/helix@e86910f · GitHub
Skip to content

Commit

Permalink
fix: deprecate ioutil
Browse files Browse the repository at this point in the history
  • Loading branch information
SputNikPlop authored May 6, 2024
1 parent bdd8724 commit e86910f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helix.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"io"
"log"
"net/http"
"reflect"
Expand Down Expand Up @@ -364,7 +364,7 @@ func (c *Client) doRequest(req *http.Request, resp *Response) error {

setResponseStatusCode(resp, "StatusCode", response.StatusCode)

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

0 comments on commit e86910f

Please sign in to comment.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/nicklaw5/helix/commit/e86910f6e0992337c22d3f5f46f1dd6761a1e599

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy