Use coma as separator for multi-value headers

Fixes: #113
This commit is contained in:
Denis Makogon
2017-07-25 19:30:31 +03:00
parent 1cc1a5ad49
commit efa75dfbb7
2 changed files with 29 additions and 1 deletions

View File

@@ -196,7 +196,7 @@ func (s *Server) serve(ctx context.Context, c *gin.Context, appName string, rout
// headers
for header, value := range c.Request.Header {
envVars[toEnvName("HEADER", header)] = strings.Join(value, " ")
envVars[toEnvName("HEADER", header)] = strings.Join(value, ", ")
}
cfg := &task.Config{