Fix http GET params proxying
This commit is contained in:
1 parent
f13e45762b
commit
203dbcb1bf
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user