shelf_static icon indicating copy to clipboard operation
shelf_static copied to clipboard

archived repo

Results 3 shelf_static issues
Sort by recently updated
recently updated
newest added

Fixes dart-lang/shelf#227 Also prepare to release v1.1.0

cla: yes

```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))...

bug

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...