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
|
# angel_static
|
||||||
|
|
||||||
[![version 1.1.3](https://img.shields.io/badge/pub-1.1.3-brightgreen.svg)](https://pub.dartlang.org/packages/angel_static)
|
[![version 1.1.4](https://img.shields.io/badge/pub-1.1.4-brightgreen.svg)](https://pub.dartlang.org/packages/angel_static)
|
||||||
[![build status](https://travis-ci.org/angel-dart/static.svg?branch=master)](https://travis-ci.org/angel-dart/static)
|
[![build status](https://travis-ci.org/angel-dart/static.svg?branch=master)](https://travis-ci.org/angel-dart/static)
|
||||||
|
|
||||||
Static server middleware for Angel.
|
Static server middleware for Angel.
|
||||||
|
|
|
@ -142,7 +142,7 @@ class CachingVirtualDirectory extends VirtualDirectory {
|
||||||
|
|
||||||
return file.readAsBytes().then((buf) {
|
return file.readAsBytes().then((buf) {
|
||||||
var etag = _etags[file.absolute.path] =
|
var etag = _etags[file.absolute.path] =
|
||||||
generateEtag(buf, weak: useWeakEtags != false);
|
generateEtag(buf, weak: useWeakEtags != false, hash: hash);
|
||||||
res.headers
|
res.headers
|
||||||
..[HttpHeaders.ETAG] = etag
|
..[HttpHeaders.ETAG] = etag
|
||||||
..[HttpHeaders.CONTENT_TYPE] = lookupMimeType(file.path);
|
..[HttpHeaders.CONTENT_TYPE] = lookupMimeType(file.path);
|
||||||
|
|
|
@ -4,7 +4,7 @@ environment:
|
||||||
sdk: ">=1.19.0"
|
sdk: ">=1.19.0"
|
||||||
homepage: https://github.com/angel-dart/angel_static
|
homepage: https://github.com/angel-dart/angel_static
|
||||||
author: thosakwe <thosakwe@gmail.com>
|
author: thosakwe <thosakwe@gmail.com>
|
||||||
version: 1.1.3
|
version: 1.1.4
|
||||||
dependencies:
|
dependencies:
|
||||||
angel_framework: ^1.0.0-dev
|
angel_framework: ^1.0.0-dev
|
||||||
intl: ">=0.0.0 <1.0.0"
|
intl: ">=0.0.0 <1.0.0"
|
||||||
|
|
Loading…
Reference in a new issue