mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Got optional hot functions working for Lambda.
This commit is contained in:
@@ -162,6 +162,9 @@ func (s *Server) serve(ctx context.Context, c *gin.Context, appName string, rout
|
||||
|
||||
var stdout bytes.Buffer // TODO: should limit the size of this, error if gets too big. akin to: https://golang.org/pkg/io/#LimitReader
|
||||
|
||||
if route.Format == "" {
|
||||
route.Format = "default"
|
||||
}
|
||||
envVars := map[string]string{
|
||||
"METHOD": c.Request.Method,
|
||||
"APP_NAME": appName,
|
||||
|
||||
Reference in New Issue
Block a user