mirror of
https://github.com/openfaas/faas.git
synced 2025-06-18 12:06:37 +00:00
Watchdog - enable forwarding of HTTP headers via CGI-like env vars.
This commit is contained in:
@ -59,6 +59,8 @@ func (ReadConfig) Read(hasEnv HasEnv) WatchdogConfig {
|
||||
cfg.writeDebug = parseBoolValue(hasEnv.Getenv("write_debug"))
|
||||
}
|
||||
|
||||
cfg.cgiHeaders = parseBoolValue(hasEnv.Getenv("cgi_headers"))
|
||||
|
||||
cfg.marshalRequest = parseBoolValue(hasEnv.Getenv("marshal_request"))
|
||||
cfg.debugHeaders = parseBoolValue(hasEnv.Getenv("debug_headers"))
|
||||
|
||||
@ -82,6 +84,9 @@ type WatchdogConfig struct {
|
||||
|
||||
marshalRequest bool
|
||||
|
||||
// cgiHeaders will make environmental variables available with all the HTTP headers.
|
||||
cgiHeaders bool
|
||||
|
||||
// prints out all incoming and out-going HTTP headers
|
||||
debugHeaders bool
|
||||
|
||||
|
Reference in New Issue
Block a user