From 6684186033661d6cdf62bb1e801fab5354e25887 Mon Sep 17 00:00:00 2001 From: Xiang Li Date: Sat, 19 Oct 2013 15:06:35 -0700 Subject: [PATCH] fix append rawqurey to the redirect location. --- server/util.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/util.go b/server/util.go index 6a53884ba..baa7c2845 100644 --- a/server/util.go +++ b/server/util.go @@ -20,7 +20,8 @@ func decodeJsonRequest(req *http.Request, data interface{}) error { func redirect(hostname string, w http.ResponseWriter, req *http.Request) { path := req.URL.Path - url := hostname + path + query := req.URL.RawQuery + url := hostname + path + "?" + query log.Debugf("Redirect to %s", url) http.Redirect(w, req, url, http.StatusTemporaryRedirect) }