This commit is contained in:
thosakwe 2017-06-15 23:05:07 -04:00
parent 8062399b35
commit 6df23c7fee
2 changed files with 3 additions and 3 deletions

View file

@ -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(

View file

@ -4,7 +4,7 @@ environment:
sdk: ">=1.19.0"
homepage: https://github.com/angel-dart/static
author: Tobe O <thosakwe@gmail.com>
version: 1.2.2
version: 1.2.2+1
dependencies:
angel_framework: ^1.0.0-dev
cli_util: ^0.1.1