Fixed the formatting of the passed URL

This commit is contained in:
Rae Jeffries-Harris
2017-08-09 16:58:27 +01:00
parent cad0c046c8
commit 3c21570fe9

View File

@@ -168,7 +168,7 @@ func (s *Server) serve(ctx context.Context, c *gin.Context, appName string, rout
envVars["CALL_ID"] = reqID
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 {
return "http"
}