2.1.2+1
This commit is contained in:
parent
c7edb44085
commit
42779a85e4
4 changed files with 6 additions and 3 deletions
|
@ -1,3 +1,6 @@
|
||||||
|
# 2.1.2+1
|
||||||
|
* Fix a typo that prevented `Range` requests from working.
|
||||||
|
|
||||||
# 2.1.2
|
# 2.1.2
|
||||||
* Patch support for range+streaming in Caching server.
|
* Patch support for range+streaming in Caching server.
|
||||||
|
|
||||||
|
|
|
@ -158,7 +158,7 @@ class CachingVirtualDirectory extends VirtualDirectory {
|
||||||
}
|
}
|
||||||
|
|
||||||
setCachedHeaders(stat.modified, req, res);
|
setCachedHeaders(stat.modified, req, res);
|
||||||
return res.streamFile(file).then((_) => false);
|
return super.serveFile(file, stat, req, res);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -240,7 +240,7 @@ class VirtualDirectory {
|
||||||
res.contentType = new MediaType.parse(type);
|
res.contentType = new MediaType.parse(type);
|
||||||
if (useBuffer == true) res.useBuffer();
|
if (useBuffer == true) res.useBuffer();
|
||||||
|
|
||||||
if (req.headers.value('range')?.startsWith('bytes ') != true) {
|
if (req.headers.value('range')?.startsWith('bytes=') != true) {
|
||||||
await res.streamFile(file);
|
await res.streamFile(file);
|
||||||
} else {
|
} else {
|
||||||
var header = new RangeHeader.parse(req.headers.value('range'));
|
var header = new RangeHeader.parse(req.headers.value('range'));
|
||||||
|
|
|
@ -4,7 +4,7 @@ environment:
|
||||||
sdk: ">=1.8.0 <3.0.0"
|
sdk: ">=1.8.0 <3.0.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: 2.1.2
|
version: 2.1.2+1
|
||||||
dependencies:
|
dependencies:
|
||||||
angel_framework: ^2.0.0-alpha
|
angel_framework: ^2.0.0-alpha
|
||||||
convert: ^2.0.0
|
convert: ^2.0.0
|
||||||
|
|
Loading…
Reference in a new issue