diff --git a/lib/src/virtual_directory.dart b/lib/src/virtual_directory.dart index 71ef4ab3..7d4a95c0 100644 --- a/lib/src/virtual_directory.dart +++ b/lib/src/virtual_directory.dart @@ -263,8 +263,8 @@ class VirtualDirectory implements AngelPlugin { var value = req.headers.value(HttpHeaders.ACCEPT); bool acceptable = value == null || value.isEmpty || - value.contains(mimeType) || - value.contains('*/*'); + value?.contains(mimeType) == true || + value?.contains('*/*') == true; if (!acceptable) throw new AngelHttpException( new UnsupportedError( diff --git a/pubspec.yaml b/pubspec.yaml index d7d300ff..8428edde 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -4,7 +4,7 @@ environment: sdk: ">=1.19.0" homepage: https://github.com/angel-dart/static author: Tobe O -version: 1.2.2 +version: 1.2.2+1 dependencies: angel_framework: ^1.0.0-dev cli_util: ^0.1.1