1.1.4
This commit is contained in:
parent
e6d9ffa79b
commit
7230a932c0
3 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
# angel_static
|
||||
|
||||
[](https://pub.dartlang.org/packages/angel_static)
|
||||
[](https://pub.dartlang.org/packages/angel_static)
|
||||
[](https://travis-ci.org/angel-dart/static)
|
||||
|
||||
Static server middleware for Angel.
|
||||
|
|
|
@ -142,7 +142,7 @@ class CachingVirtualDirectory extends VirtualDirectory {
|
|||
|
||||
return file.readAsBytes().then((buf) {
|
||||
var etag = _etags[file.absolute.path] =
|
||||
generateEtag(buf, weak: useWeakEtags != false);
|
||||
generateEtag(buf, weak: useWeakEtags != false, hash: hash);
|
||||
res.headers
|
||||
..[HttpHeaders.ETAG] = etag
|
||||
..[HttpHeaders.CONTENT_TYPE] = lookupMimeType(file.path);
|
||||
|
|
|
@ -4,7 +4,7 @@ environment:
|
|||
sdk: ">=1.19.0"
|
||||
homepage: https://github.com/angel-dart/angel_static
|
||||
author: thosakwe <thosakwe@gmail.com>
|
||||
version: 1.1.3
|
||||
version: 1.1.4
|
||||
dependencies:
|
||||
angel_framework: ^1.0.0-dev
|
||||
intl: ">=0.0.0 <1.0.0"
|
||||
|
|
Loading…
Reference in a new issue