Skip to content

Commit

Permalink
support only GO version
Browse files Browse the repository at this point in the history
  • Loading branch information
deankarn committed Mar 25, 2024
1 parent 2351be7 commit adf96d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/http/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ func Decode(r *http.Request, qp QueryParamsOption, maxMemory int64, v interface{
//
// Example if header was "application/json" would decode using
// json.NewDecoder(ioext.LimitReader(r.Body, maxMemory)).Decode(v).
func DecodeResponseAny(r *http.Response, maxMemory bytesext.Bytes, v any) (err error) {
func DecodeResponseAny(r *http.Response, maxMemory bytesext.Bytes, v interface{}) (err error) {
typ := r.Header.Get(ContentType)
if idx := strings.Index(typ, ";"); idx != -1 {
typ = typ[:idx]
Expand Down

0 comments on commit adf96d9

Please sign in to comment.