Remove ctxreader. It didn't solve the problem it meant to solve but it adds unneeded complexity

This commit is contained in:
DarthSim
2023-05-01 20:50:42 +03:00
parent a4c876fc6d
commit 6d087712aa
6 changed files with 4 additions and 166 deletions

View File

@@ -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