mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
passing headers to env
This commit is contained in:
@@ -136,6 +136,11 @@ func handleRunner(c *gin.Context) {
|
||||
envVars["PARAM_"+strings.ToUpper(param.Key)] = param.Value
|
||||
}
|
||||
|
||||
// headers
|
||||
for header, value := range c.Request.Header {
|
||||
envVars["HEADER_"+strings.ToUpper(header)] = strings.Join(value, " ")
|
||||
}
|
||||
|
||||
cfg := &runner.Config{
|
||||
Image: el.Image,
|
||||
Timeout: 30 * time.Second,
|
||||
|
||||
Reference in New Issue
Block a user