pixl-server-storage 3.1.3 → 3.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/engines/S3.js +8 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -41,6 +41,7 @@ Here is the table of contents for this current document:
|
|
|
41
41
|
* [log_event_types](#log_event_types)
|
|
42
42
|
* [max_recent_events](#max_recent_events)
|
|
43
43
|
* [expiration_updates](#expiration_updates)
|
|
44
|
+
* [lower_case_keys](#lower_case_keys)
|
|
44
45
|
* [debug (standalone)](#debug-standalone)
|
|
45
46
|
- [Engines](#engines)
|
|
46
47
|
* [Local Filesystem](#local-filesystem)
|
|
@@ -56,6 +57,7 @@ Here is the table of contents for this current document:
|
|
|
56
57
|
* [Couchbase](#couchbase)
|
|
57
58
|
* [Redis](#redis)
|
|
58
59
|
+ [RedisCluster](#rediscluster)
|
|
60
|
+
* [SQLite](#sqlite)
|
|
59
61
|
* [Hybrid](#hybrid)
|
|
60
62
|
- [Key Normalization](#key-normalization)
|
|
61
63
|
- [Basic Functions](#basic-functions)
|
package/engines/S3.js
CHANGED
|
@@ -408,9 +408,16 @@ module.exports = Class.create({
|
|
|
408
408
|
self.logDebug(9, "S3 stream download closed: " + key);
|
|
409
409
|
} );
|
|
410
410
|
|
|
411
|
+
// get full length from the ContentRange header
|
|
412
|
+
var len = 0;
|
|
413
|
+
if (data.ContentRange && data.ContentRange.toString().match(/\/\s*(\d+)\s*$/)) {
|
|
414
|
+
len = parseInt( RegExp.$1 );
|
|
415
|
+
}
|
|
416
|
+
|
|
411
417
|
callback( null, download, {
|
|
412
418
|
mod: Math.floor( (new Date(data.LastModified)).getTime() / 1000 ),
|
|
413
|
-
len:
|
|
419
|
+
len: len,
|
|
420
|
+
cr: data.ContentRange
|
|
414
421
|
} );
|
|
415
422
|
})
|
|
416
423
|
.catch( function(err) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pixl-server-storage",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.4",
|
|
4
4
|
"description": "A key/value/list storage component for the pixl-server framework.",
|
|
5
5
|
"author": "Joseph Huckaby <jhuckaby@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/jhuckaby/pixl-server-storage",
|