Fixed #27
This commit is contained in:
parent
3f2c29571b
commit
16c42d14f9
3 changed files with 5 additions and 2 deletions
|
@ -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
|
# 1.3.0-alpha
|
||||||
* Removed file transformers.
|
* Removed file transformers.
|
||||||
* `VirtualDirectory` is no longer an `AngelPlugin`, and instead exposes a `handleRequest` middleware.
|
* `VirtualDirectory` is no longer an `AngelPlugin`, and instead exposes a `handleRequest` middleware.
|
||||||
|
|
|
@ -15,7 +15,7 @@ String formatDateForHttp(DateTime dt) => _fmt.format(dt.toUtc()) + ' GMT';
|
||||||
|
|
||||||
/// Generates a weak ETag from the given buffer.
|
/// Generates a weak ETag from the given buffer.
|
||||||
String weakEtag(List<int> buf) {
|
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].
|
/// Returns a string representation of the given [CacheAccessLevel].
|
||||||
|
|
|
@ -4,7 +4,7 @@ environment:
|
||||||
sdk: ">=1.19.0"
|
sdk: ">=1.19.0"
|
||||||
homepage: https://github.com/angel-dart/static
|
homepage: https://github.com/angel-dart/static
|
||||||
author: Tobe O <thosakwe@gmail.com>
|
author: Tobe O <thosakwe@gmail.com>
|
||||||
version: 1.3.0-alpha
|
version: 1.3.0-alpha+1
|
||||||
dependencies:
|
dependencies:
|
||||||
angel_framework: ^1.1.0-alpha
|
angel_framework: ^1.1.0-alpha
|
||||||
file: ^2.0.0
|
file: ^2.0.0
|
||||||
|
|
Loading…
Reference in a new issue