Skip to content

Commit dd99f50

Browse files
author
Dean Karn
authored
Update README.md
1 parent 1eb11d9 commit dd99f50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ rv.URLParam(paramname)
8080

8181
// serve css, js etc.. pure.RequestVars(r).URLParam(pure.WildcardParam) will return the remaining path if
8282
// you need to use it in a custom handler...
83-
p.Get("/static/*", http.FileServer(http.Dir("static/").ServeHTTP))
83+
p.Get("/static/*", http.StripPrefix("/static/", http.FileServer(http.Dir("static"))).ServeHTTP)
8484

8585
...
8686
```

0 commit comments

Comments
 (0)