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); var value = req.headers.value(HttpHeaders.ACCEPT);
bool acceptable = value == null || bool acceptable = value == null ||
value.isEmpty || value.isEmpty ||
value.contains(mimeType) || value?.contains(mimeType) == true ||
value.contains('*/*'); value?.contains('*/*') == true;
if (!acceptable) if (!acceptable)
throw new AngelHttpException( throw new AngelHttpException(
new UnsupportedError( new UnsupportedError(

View file

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