+1
This commit is contained in:
parent
8062399b35
commit
6df23c7fee
2 changed files with 3 additions and 3 deletions
|
@ -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(
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue