mirror of
https://github.com/openfaas/faas.git
synced 2025-06-18 03:56:37 +00:00
Implement log proxy handler
**What** - Implement log handler method that will hijack the connection and clear timeouts to allow long lived streams - Proxies requests to the logs provider and returns the response unmodified Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
This commit is contained in:
committed by
Alex Ellis
parent
3c4077f3df
commit
e7e91ecd15
@ -155,6 +155,10 @@ func copyHeaders(destination http.Header, source *http.Header) {
|
||||
copy(vClone, v)
|
||||
(destination)[k] = vClone
|
||||
}
|
||||
|
||||
for _, h := range hopHeaders {
|
||||
destination.Del(h)
|
||||
}
|
||||
}
|
||||
|
||||
func deleteHeaders(target *http.Header, exclude *[]string) {
|
||||
|
Reference in New Issue
Block a user