From 6df23c7fee40e27a55dbc9aae22142ed4c950396 Mon Sep 17 00:00:00 2001 From: thosakwe Date: Thu, 15 Jun 2017 23:05:07 -0400 Subject: [PATCH] +1 --- lib/src/virtual_directory.dart | 4 ++-- pubspec.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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