mirror of
https://github.com/openfaas/faas.git
synced 2025-06-10 09:16:48 +00:00
Started implementing Host header propagation for asynchronous invocations
Add Host field to the queue.Request struct and copy it from Host field of the HTTP request when converting HTTP request to queue.Request in MakeQueuedProxy function. Signed-off-by: Dmitri Rubinstein <dmitri.rubinstein@googlemail.com>
This commit is contained in:
parent
fd0abe46dd
commit
c182a0af82
@ -50,6 +50,7 @@ func MakeQueuedProxy(metrics metrics.MetricOptions, wildcard bool, canQueueReque
|
||||
Method: r.Method,
|
||||
QueryString: r.URL.RawQuery,
|
||||
Header: r.Header,
|
||||
Host: r.Host,
|
||||
CallbackURL: callbackURL,
|
||||
}
|
||||
|
||||
|
@ -9,6 +9,7 @@ import "net/http"
|
||||
// Request for asynchronous processing
|
||||
type Request struct {
|
||||
Header http.Header
|
||||
Host string
|
||||
Body []byte
|
||||
Method string
|
||||
QueryString string
|
||||
|
Loading…
x
Reference in New Issue
Block a user