Permalink
Browse files

Use Content-Disposition: Inline for static serving

  • Loading branch information...
1 parent dedff5a commit 33335fe0c5cc05192e97cc615b4a1901a0faa515 @robfig committed Mar 11, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 modules/static/app/controllers/static.go
@@ -71,7 +71,7 @@ func (c Static) Serve(prefix, filepath string) revel.Result {
}
file, err := os.Open(fname)
- return c.RenderFile(file, "")
+ return c.RenderFile(file, revel.Inline)
}
// This method allows modules to serve binary files. The parameters are the same

0 comments on commit 33335fe

Please sign in to comment.