Skip to content

Commit

Permalink
fix build 1.13 (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
crimson-gao authored Sep 1, 2023
1 parent 24b6f23 commit 722847e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions credentials_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package sls
import (
"encoding/json"
"fmt"
io "io"
"io/ioutil"
"net/http"
"strings"
"time"
Expand Down Expand Up @@ -207,7 +207,7 @@ func newEcsRamRoleReqBuilder(urlPrefix, ramRole string) func() (*http.Request, e
// Parse ECS Ram Role http response, convert it to TempCredentials
func ecsRamRoleParser(resp *http.Response) (*TempCredentials, error) {
// 1. read body
data, err := io.ReadAll(resp.Body)
data, err := ioutil.ReadAll(resp.Body)
if err != nil {
return nil, fmt.Errorf("fail to read http resp body: %w", err)
}
Expand Down

0 comments on commit 722847e

Please sign in to comment.