This repository was archived by the owner on May 20, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ export class AcquisitionManager {
118
118
return ;
119
119
}
120
120
121
- if ( response . statusCode !== 200 ) {
121
+ if ( response . statusCode < 200 || response . statusCode >= 300 ) {
122
122
let errorMessage : any ;
123
123
this . _statusCode = response . statusCode ;
124
124
this . handleRequestFailure ( ) ;
@@ -220,7 +220,7 @@ export class AcquisitionManager {
220
220
return ;
221
221
}
222
222
223
- if ( response . statusCode !== 200 ) {
223
+ if ( response . statusCode < 200 || response . statusCode >= 300 ) {
224
224
this . _statusCode = response . statusCode ;
225
225
this . handleRequestFailure ( ) ;
226
226
callback ( new CodePushHttpError ( response . statusCode + ": " + response . body ) , /*not used*/ null ) ;
@@ -253,7 +253,7 @@ export class AcquisitionManager {
253
253
return ;
254
254
}
255
255
256
- if ( response . statusCode !== 200 ) {
256
+ if ( response . statusCode < 200 || response . statusCode >= 300 ) {
257
257
this . _statusCode = response . statusCode ;
258
258
this . handleRequestFailure ( ) ;
259
259
callback ( new CodePushHttpError ( response . statusCode + ": " + response . body ) , /*not used*/ null ) ;
You can’t perform that action at this time.
0 commit comments