Fix http GET params proxying

This commit is contained in:
d1slike committed 2022-08-11 11:29:11 +03:00
1 parent f13e45762b
commit 203dbcb1bf
1 file changed
+1 -1
+1 -1
View File
@@ -15,7 +15,7 @@ func Entrypoint(maxReqBodySize int64, next Handler, pathPrefix string, logger lo
req.Body = http.MaxBytesReader(writer, req.Body, maxReqBodySize)
prefix := fmt.Sprintf("%s/", pathPrefix)
endpoint := strings.TrimPrefix(req.URL.String(), prefix)
endpoint := strings.TrimPrefix(req.URL.Path, prefix)
ctx := request.NewContext(req, writer, endpoint)
err := next.Handle(ctx)