mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Disable envAsHeader by default (#435)
* disable envAsHeader by default * fix -e flag usage description
This commit is contained in:
@@ -237,7 +237,9 @@ func callfn(u string, content io.Reader, output io.Writer, env []string) error {
|
||||
|
||||
req.Header.Set("Content-Type", "application/json")
|
||||
|
||||
envAsHeader(req, env)
|
||||
if len(env) > 0 {
|
||||
envAsHeader(req, env)
|
||||
}
|
||||
|
||||
resp, err := http.DefaultClient.Do(req)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user