We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f1a3844 + a5df4ec commit 5809f5eCopy full SHA for 5809f5e
lib/storage/file.js
@@ -1024,7 +1024,7 @@ File.prototype.startResumableUpload_ = function(stream, metadata) {
1024
// by caching a slice of the first chunk, then comparing it with the first
1025
// byte of incoming data.
1026
if (bytesWritten === 0) {
1027
- var cachedFirstChunk = configStore.get(that.name).firstChunk;
+ var cachedFirstChunk = config && config.firstChunk;
1028
var firstChunk = chunk.slice(0, 16);
1029
1030
if (!cachedFirstChunk) {
0 commit comments