mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Fix run env vars passed in via command line to test locally and updated docs to match.
This commit is contained in:
committed by
Reed Allman
parent
7b408468fa
commit
af918fdfe9
@@ -162,8 +162,9 @@ func (s *Server) serve(ctx context.Context, c *gin.Context, appName string, foun
|
||||
var stdout bytes.Buffer // TODO: should limit the size of this, error if gets too big. akin to: https://golang.org/pkg/io/#LimitReader
|
||||
|
||||
envVars := map[string]string{
|
||||
"METHOD": c.Request.Method,
|
||||
"ROUTE": found.Path,
|
||||
"METHOD": c.Request.Method,
|
||||
"APP_NAME": appName,
|
||||
"ROUTE": found.Path,
|
||||
"REQUEST_URL": fmt.Sprintf("%v//%v%v", func() string {
|
||||
if c.Request.TLS == nil {
|
||||
return "http"
|
||||
|
||||
Reference in New Issue
Block a user