Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/hotfix_v4.3.1' into hotfix_v4.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjiawei committed Nov 22, 2024
2 parents 7a8943d + 537ca59 commit 06362ec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions platform-gateway/api/support/redirect_support.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +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 {

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

Expand Down

0 comments on commit 06362ec

Please sign in to comment.