Skip to content

Commit

Permalink
Merge pull request #167 from karldoenitz/feature-v2.0.2
Browse files Browse the repository at this point in the history
Feature v2.0.2
  • Loading branch information
karldoenitz authored Dec 11, 2024
2 parents 0025f76 + e55e8d6 commit 3f675bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions request/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"fmt"
"github.com/karldoenitz/Tigo/logger"
"io"
"io/ioutil"
"net/http"
"net/url"
"reflect"
Expand Down Expand Up @@ -72,9 +71,10 @@ func (client HttpClient) request(method, uri string, headers map[string]string,
res.Content = append(res.Content, buf...)
}
default:
res.Content, err = ioutil.ReadAll(response.Body)
res.Content, err = io.ReadAll(response.Body)
}
}
logger.Info.Printf("Request %s %s StatusCode: %d\n", method, uri, response.StatusCode)
return
}

Expand Down

0 comments on commit 3f675bb

Please sign in to comment.