Add support for HEAD requests
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user