Add support for HEAD requests

This commit is contained in:
Adam Barth 2015-08-13 11:20:19 -07:00
parent e98f8cc03d
commit f7fa689da4

View File

@ -18,7 +18,7 @@ void printUsage(parser) {
void addRoute(var router, String route, String path) {
router.add(
route,
['GET'],
['GET', 'HEAD'],
createStaticHandler(
path,
serveFilesOutsidePath: true,