Fixed input

This commit is contained in:
Travis Reeder
2017-06-21 11:59:38 -07:00
parent 26d3ba2420
commit 11c28e8846
2 changed files with 2 additions and 5 deletions

View File

@@ -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