mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Fixed the formatting of the passed URL
This commit is contained in:
@@ -168,7 +168,7 @@ func (s *Server) serve(ctx context.Context, c *gin.Context, appName string, rout
|
|||||||
|
|
||||||
envVars["CALL_ID"] = reqID
|
envVars["CALL_ID"] = reqID
|
||||||
envVars["METHOD"] = c.Request.Method
|
envVars["METHOD"] = c.Request.Method
|
||||||
envVars["REQUEST_URL"] = fmt.Sprintf("%v//%v%v", func() string {
|
envVars["REQUEST_URL"] = fmt.Sprintf("%v://%v%v", func() string {
|
||||||
if c.Request.TLS == nil {
|
if c.Request.TLS == nil {
|
||||||
return "http"
|
return "http"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user