From 7230a932c0757414605ef2266099a8546fc63634 Mon Sep 17 00:00:00 2001 From: thosakwe Date: Wed, 1 Mar 2017 23:01:32 -0500 Subject: [PATCH] 1.1.4 --- README.md | 2 +- lib/src/cache.dart | 2 +- pubspec.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 56cb5385..da3830ad 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # 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) Static server middleware for Angel. diff --git a/lib/src/cache.dart b/lib/src/cache.dart index cb32e784..e28ed664 100644 --- a/lib/src/cache.dart +++ b/lib/src/cache.dart @@ -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); diff --git a/pubspec.yaml b/pubspec.yaml index 59b2d0d0..6f19d2c0 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -4,7 +4,7 @@ environment: sdk: ">=1.19.0" homepage: https://github.com/angel-dart/angel_static author: thosakwe -version: 1.1.3 +version: 1.1.4 dependencies: angel_framework: ^1.0.0-dev intl: ">=0.0.0 <1.0.0"