File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff 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 ||
You can’t perform that action at this time.
0 commit comments