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 {
118118 return ;
119119 }
120120
121- if ( response . statusCode !== 200 ) {
121+ if ( response . statusCode < 200 || response . statusCode >= 300 ) {
122122 let errorMessage : any ;
123123 this . _statusCode = response . statusCode ;
124124 this . handleRequestFailure ( ) ;
@@ -220,7 +220,7 @@ export class AcquisitionManager {
220220 return ;
221221 }
222222
223- if ( response . statusCode !== 200 ) {
223+ if ( response . statusCode < 200 || response . statusCode >= 300 ) {
224224 this . _statusCode = response . statusCode ;
225225 this . handleRequestFailure ( ) ;
226226 callback ( new CodePushHttpError ( response . statusCode + ": " + response . body ) , /*not used*/ null ) ;
@@ -253,7 +253,7 @@ export class AcquisitionManager {
253253 return ;
254254 }
255255
256- if ( response . statusCode !== 200 ) {
256+ if ( response . statusCode < 200 || response . statusCode >= 300 ) {
257257 this . _statusCode = response . statusCode ;
258258 this . handleRequestFailure ( ) ;
259259 callback ( new CodePushHttpError ( response . statusCode + ": " + response . body ) , /*not used*/ null ) ;
You can’t perform that action at this time.
0 commit comments