+1
This commit is contained in:
parent
3b757a64ce
commit
2ac66a4877
3 changed files with 6 additions and 3 deletions
|
@ -1,3 +1,6 @@
|
|||
# 1.2.4+1
|
||||
Fixed a bug where `Accept-Encoding` was not properly adhered to.
|
||||
|
||||
# 1.2.4
|
||||
Fixes https://github.com/angel-dart/angel/issues/44.
|
||||
* MIME types will now default to `application/octet-stream`.
|
||||
|
|
|
@ -236,8 +236,8 @@ class VirtualDirectory implements AngelPlugin {
|
|||
}
|
||||
|
||||
bool _acceptsGzip(RequestContext req) {
|
||||
var h = req.headers.value(HttpHeaders.ACCEPT)?.toLowerCase();
|
||||
return h?.contains('gzip') == true;
|
||||
var h = req.headers.value(HttpHeaders.ACCEPT_ENCODING)?.toLowerCase();
|
||||
return h?.contains('*') == true || h?.contains('gzip') == true;
|
||||
}
|
||||
|
||||
void _ensureContentTypeAllowed(String mimeType, RequestContext req) {
|
||||
|
|
|
@ -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.4
|
||||
version: 1.2.4+1
|
||||
dependencies:
|
||||
angel_framework: ^1.0.0-dev
|
||||
cli_util: ^0.1.1
|
||||
|
|
Loading…
Reference in a new issue