Merge pull request #259 from xiangli-cmu/0.2

fix do not need to parse the original url
This commit is contained in:
Xiang Li 2013-10-20 11:27:47 -07:00
commit f19567fd3e

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