From 3602a13d197a9d53a7a71ff6399df01dee597cb4 Mon Sep 17 00:00:00 2001 From: Sampsa Saarela Date: Mon, 30 Dec 2013 10:05:06 +0200 Subject: [PATCH] Headers were broken when upload a lot of large files (and set maxOperations to 5). Could be also relevant with issue #100. --- tasks/lib/s3.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/lib/s3.js b/tasks/lib/s3.js index 3e0cf7f..7f63a7d 100644 --- a/tasks/lib/s3.js +++ b/tasks/lib/s3.js @@ -110,7 +110,7 @@ exports.init = function (grunt) { return dfd.reject(makeError(MSG_ERR_NOT_FOUND, prettySrc)); } - var headers = options.headers || {}; + var headers = _.clone(options.headers || {}); if (options.access) { headers['x-amz-acl'] = options.access;