Skip to content

Commit e383076

Browse files
MarcusNoblealexellis
authored andcommitted
Ensure querystring is copied over for the function
Signed-off-by: Marcus Noble <[email protected]>
1 parent 7bce484 commit e383076

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

template/golang-http-armhf/main.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ func makeRequestHandler() func(http.ResponseWriter, *http.Request) {
3131
}
3232

3333
req := handler.Request{
34-
Body: input,
35-
Header: r.Header,
36-
Method: r.Method,
34+
Body: input,
35+
Header: r.Header,
36+
Method: r.Method,
37+
QueryString: r.URL.RawQuery,
3738
}
3839

3940
result, resultErr := function.Handle(req)

template/golang-http/main.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ func makeRequestHandler() func(http.ResponseWriter, *http.Request) {
3131
}
3232

3333
req := handler.Request{
34-
Body: input,
35-
Header: r.Header,
36-
Method: r.Method,
34+
Body: input,
35+
Header: r.Header,
36+
Method: r.Method,
37+
QueryString: r.URL.RawQuery,
3738
}
3839

3940
result, resultErr := function.Handle(req)

0 commit comments

Comments
 (0)