Browse Source

Merge pull request #259 from xiangli-cmu/0.2

fix do not need to parse the original url
Xiang Li 12 years ago
parent
commit
f19567fd3e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      server/util.go

+ 1 - 1
server/util.go

@@ -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