Skip to content
Snippets Groups Projects
Commit c182a0af authored by Dmitri Rubinstein's avatar Dmitri Rubinstein Committed by Alex Ellis
Browse files

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: default avatarDmitri Rubinstein <dmitri.rubinstein@googlemail.com>
parent fd0abe46
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment