Skip to content

Commit 4b07b0d

Browse files
author
Igor Khomenko
committed
completely removed s3bucket setting
1 parent cd3e41c commit 4b07b0d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

js/qbProxy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ ServiceProxy.prototype = {
7575
timeout: config.timeout,
7676
beforeSend: function(jqXHR, settings) {
7777

78-
if (settings.url.indexOf('://' + config.endpoints.s3Bucket) === -1) {
78+
if (settings.url.indexOf('s3.amazonaws.com') === -1) {
7979
if (_this.qbInst.session && _this.qbInst.session.token) {
8080
jqXHR.setRequestHeader('QB-Token', _this.qbInst.session.token);
8181
jqXHR.setRequestHeader('QB-SDK', 'JS ' + versionNum + ' - Client');
@@ -105,7 +105,7 @@ ServiceProxy.prototype = {
105105
if(!isBrowser) {
106106

107107
var isJSONRequest = ajaxCall.dataType === 'json',
108-
makingQBRequest = params.url.indexOf('://' + config.endpoints.s3Bucket) === -1 &&
108+
makingQBRequest = params.url.indexOf('s3.amazonaws.com') === -1 &&
109109
_this.qbInst &&
110110
_this.qbInst.session &&
111111
_this.qbInst.session.token ||

0 commit comments

Comments
 (0)