summaryrefslogtreecommitdiff
path: root/src/pkg/http/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/http/server.go')
-rw-r--r--src/pkg/http/server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/http/server.go b/src/pkg/http/server.go
index b7a81905c..2944e50bc 100644
--- a/src/pkg/http/server.go
+++ b/src/pkg/http/server.go
@@ -367,7 +367,7 @@ func Redirect(c *Conn, url string, code int) {
// no leading http://server
if url == "" || url[0] != '/' {
// make relative path absolute
- olddir, oldfile := path.Split(oldpath);
+ olddir, _ := path.Split(oldpath);
url = olddir + url;
}