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:
Dmitri Rubinstein 2018-08-14 17:07:24 +02:00 committed by Alex Ellis
parent fd0abe46dd
commit c182a0af82
2 changed files with 2 additions and 0 deletions

View File

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

View File

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