Commit f7fa689d authored by Adam Barth's avatar Adam Barth

Add support for HEAD requests

parent e98f8cc0
...@@ -18,7 +18,7 @@ void printUsage(parser) { ...@@ -18,7 +18,7 @@ void printUsage(parser) {
void addRoute(var router, String route, String path) { void addRoute(var router, String route, String path) {
router.add( router.add(
route, route,
['GET'], ['GET', 'HEAD'],
createStaticHandler( createStaticHandler(
path, path,
serveFilesOutsidePath: true, serveFilesOutsidePath: true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment