This commit is contained in:
Tobe O 2017-11-18 00:43:20 -05:00
parent 3f2c29571b
commit 16c42d14f9
3 changed files with 5 additions and 2 deletions

View file

@ -1,3 +1,6 @@
# 1.3.0-alpha+1
* ETags once again only encode the first 50 bytes of files. Resolves [#27](https://github.com/angel-dart/static/issues/27).
# 1.3.0-alpha
* Removed file transformers.
* `VirtualDirectory` is no longer an `AngelPlugin`, and instead exposes a `handleRequest` middleware.

View file

@ -15,7 +15,7 @@ String formatDateForHttp(DateTime dt) => _fmt.format(dt.toUtc()) + ' GMT';
/// Generates a weak ETag from the given buffer.
String weakEtag(List<int> buf) {
return 'W/${buf.length}' + BASE64URL.encode(buf);
return 'W/${buf.length}' + BASE64URL.encode(buf.take(50).toList());
}
/// Returns a string representation of the given [CacheAccessLevel].

View file

@ -4,7 +4,7 @@ environment:
sdk: ">=1.19.0"
homepage: https://github.com/angel-dart/static
author: Tobe O <thosakwe@gmail.com>
version: 1.3.0-alpha
version: 1.3.0-alpha+1
dependencies:
angel_framework: ^1.1.0-alpha
file: ^2.0.0