diff --git a/request.go b/request.go index 9c5e42e75..4796ac1b3 100644 --- a/request.go +++ b/request.go @@ -208,6 +208,10 @@ func (r *Request) initReq(opChain *chain, method string) { } r.httpReq = httpReq + if httpReq != nil && httpReq.URL != nil && httpReq.URL.RawQuery != "" { + query, _ := url.ParseQuery(httpReq.URL.RawQuery) + r.query = query + } } // Alias is similar to Value.Alias.