fix do not need to parse the original url

This commit is contained in:
Xiang Li 2013-10-20 11:27:40 -07:00
parent 1119a86cc3
commit 2cafdcd657

View File

@ -20,7 +20,7 @@ func decodeJsonRequest(req *http.Request, data interface{}) error {
}
func redirect(hostname string, w http.ResponseWriter, req *http.Request) {
originalURL, _ := url.Parse(req.URL.String())
originalURL := req.URL
redirectURL, _ := url.Parse(hostname)
// we need the original path and raw query