mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-10-09 19:52:30 +02:00
Remove ctxreader. It didn't solve the problem it meant to solve but it adds unneeded complexity
This commit is contained in:
@@ -12,7 +12,6 @@ import (
|
||||
"github.com/ncw/swift/v2"
|
||||
|
||||
"github.com/imgproxy/imgproxy/v3/config"
|
||||
"github.com/imgproxy/imgproxy/v3/ctxreader"
|
||||
defaultTransport "github.com/imgproxy/imgproxy/v3/transport"
|
||||
"github.com/imgproxy/imgproxy/v3/transport/notmodified"
|
||||
)
|
||||
@@ -103,7 +102,7 @@ func (t transport) RoundTrip(req *http.Request) (resp *http.Response, err error)
|
||||
ProtoMajor: 1,
|
||||
ProtoMinor: 0,
|
||||
Header: header,
|
||||
Body: ctxreader.New(req.Context(), object, true),
|
||||
Body: object,
|
||||
Close: true,
|
||||
Request: req,
|
||||
}, nil
|
||||
|
Reference in New Issue
Block a user