mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-09-27 20:17:20 +02:00
Remove ctxreader. It didn't solve the problem it meant to solve but it adds unneeded complexity
This commit is contained in:
@@ -14,7 +14,6 @@ import (
|
||||
"strings"
|
||||
|
||||
"github.com/imgproxy/imgproxy/v3/config"
|
||||
"github.com/imgproxy/imgproxy/v3/ctxreader"
|
||||
"github.com/imgproxy/imgproxy/v3/httprange"
|
||||
"github.com/imgproxy/imgproxy/v3/transport/notmodified"
|
||||
)
|
||||
@@ -96,7 +95,7 @@ func (t transport) RoundTrip(req *http.Request) (resp *http.Response, err error)
|
||||
ProtoMinor: 0,
|
||||
Header: header,
|
||||
ContentLength: size,
|
||||
Body: ctxreader.New(req.Context(), body, true),
|
||||
Body: body,
|
||||
Close: true,
|
||||
Request: req,
|
||||
}, nil
|
||||
|
Reference in New Issue
Block a user