From b895b7a9e5937fd7ca47f8de8ffc8030d40af72c Mon Sep 17 00:00:00 2001 From: blacksonic Date: Mon, 18 Dec 2017 10:37:07 +0100 Subject: [PATCH] fix(mb): update megabyte definition --- lib/requestOption.js | 2 +- lib/wrapper.spec.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/requestOption.js b/lib/requestOption.js index 1b63652..2202e13 100644 --- a/lib/requestOption.js +++ b/lib/requestOption.js @@ -1,6 +1,6 @@ 'use strict'; -const MEGA_BYTE = 1000 * 1000; +const MEGA_BYTE = 1024 * 1024; class SuiteRequestOption { diff --git a/lib/wrapper.spec.js b/lib/wrapper.spec.js index 08c14f9..2b8cba4 100644 --- a/lib/wrapper.spec.js +++ b/lib/wrapper.spec.js @@ -45,7 +45,7 @@ describe('Wrapper', function() { 'x-custom': 'alma' }, timeout: 15000, - maxContentLength: 10000000 + maxContentLength: 10485760 }; });