shelf_static
shelf_static copied to clipboard
archived repo
Fixes dart-lang/shelf#227 Also prepare to release v1.1.0
```dart Handler createFileHandler(String path, {String? url, String? contentType}) { final file = File(path); if (!file.existsSync()) { throw ArgumentError.value(path, 'path', 'does not exist.'); } else if (url != null && !p.url.isRelative(url))...
Handler createFileHandler in static_handler.dart, this line is stopping the file being sent : if (request.url.path != url) return Response.notFound('Not Found'); if removed my code works fine and the file is...