summaryrefslogtreecommitdiff
path: root/src/pkg/http/fs.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/http/fs.go')
-rw-r--r--src/pkg/http/fs.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/pkg/http/fs.go b/src/pkg/http/fs.go
index edeec693e..c0fa69216 100644
--- a/src/pkg/http/fs.go
+++ b/src/pkg/http/fs.go
@@ -168,9 +168,7 @@ type fileHandler struct {
// with the contents of the file system rooted at root.
// It strips prefix from the incoming requests before
// looking up the file name in the file system.
-func FileServer(root, prefix string) Handler {
- return &fileHandler{root, prefix};
-}
+func FileServer(root, prefix string) Handler { return &fileHandler{root, prefix} }
func (f *fileHandler) ServeHTTP(c *Conn, r *Request) {
path := r.Url.Path;