mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Fixed input
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
||||
"net"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strings"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
@@ -48,6 +49,7 @@ func getCfg(t *models.Task) *task.Config {
|
||||
AppName: t.AppName,
|
||||
Env: t.EnvVars,
|
||||
Ready: make(chan struct{}),
|
||||
Stdin: strings.NewReader(t.Payload),
|
||||
}
|
||||
if t.Timeout == nil || *t.Timeout <= 0 {
|
||||
cfg.Timeout = DefaultTimeout
|
||||
|
||||
Reference in New Issue
Block a user