1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-11-29 23:07:40 +02:00

Add IMGPROXY_SOURCE_URL_QUERY_SEPARATOR config

This commit is contained in:
DarthSim
2025-01-07 20:48:05 +03:00
parent ca409b4809
commit bf8a39821b
9 changed files with 59 additions and 28 deletions

View File

@@ -51,7 +51,7 @@ func New() (http.RoundTripper, error) {
}
func (t transport) RoundTrip(req *http.Request) (resp *http.Response, err error) {
container, objectName := common.GetBucketAndKey(req.URL)
container, objectName, _ := common.GetBucketAndKey(req.URL)
if len(container) == 0 || len(objectName) == 0 {
body := strings.NewReader("Invalid Swift URL: container name or object name is empty")