1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

fix: include query params with relayed request

This commit is contained in:
Ferdinand Mütsch 2023-04-04 00:15:56 +02:00
parent 083fbf8633
commit beced39923

View File

@ -65,6 +65,7 @@ func (h *RelayHandler) Any(w http.ResponseWriter, r *http.Request) {
w.Write([]byte{}) w.Write([]byte{})
return return
} }
targetUrl.RawQuery = r.URL.RawQuery
p := httputil.ReverseProxy{ p := httputil.ReverseProxy{
Director: func(r *http.Request) { Director: func(r *http.Request) {