From 917aa35f8ff95052459538c2e5bae80d1c9a307e Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 8 May 2009 15:40:14 -0700 Subject: implications of stricter type equality: if both types are named, they must be the same type (arising from the same declaration). R=r,gri DELTA=44 (21 added, 4 deleted, 19 changed) OCL=28436 CL=28577 --- src/lib/http/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/http') diff --git a/src/lib/http/server.go b/src/lib/http/server.go index 438c0d915b..9398351fe7 100644 --- a/src/lib/http/server.go +++ b/src/lib/http/server.go @@ -329,7 +329,7 @@ func Redirect(c *Conn, url string) { // Redirect to a fixed URL type redirectHandler string func (url redirectHandler) ServeHTTP(c *Conn, req *Request) { - Redirect(c, url); + Redirect(c, string(url)); } // RedirectHandler returns a request handler that redirects -- cgit v1.3-5-g9baa