diff --git a/platform-gateway/api/support/redirect_support.go b/platform-gateway/api/support/redirect_support.go index 99f057ec6f..cd1c3280f7 100644 --- a/platform-gateway/api/support/redirect_support.go +++ b/platform-gateway/api/support/redirect_support.go @@ -24,11 +24,7 @@ type RequestHandlerFunc func(request *http.Request, c *gin.Context) error type ResponseHandlerFunc func(body *[]byte, c *gin.Context) error func (invoke RedirectInvoke) Do(c *gin.Context) error { - if strings.Contains(invoke.TargetUrl, "/terminal/v1/assets") && c.Request.Method == http.MethodPost { - log.Logger.Info("Use gin redirect url", log.String("url", invoke.TargetUrl)) - c.Redirect(http.StatusMovedPermanently, invoke.TargetUrl) - return nil - } + log.Logger.Info(fmt.Sprintf("Redirecting request to downstream system: [Method: %s] [URL: %s] [ContentLength: %d]", c.Request.Method, invoke.TargetUrl, c.Request.ContentLength)) cloneRequest := c.Request.Clone(c.Request.Context()) // deep copy original request