fixed bad request retry

This commit is contained in:
Philipp Kunz 2017-01-29 17:51:53 +01:00
parent 266f84f33a
commit f63d8abfc6
2 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -133,7 +133,7 @@ export class CflareAccount {
)
if (response.statusCode === 200) {
done.resolve(response.body)
} else if (response.statusCode === 429) {
} else if (response.statusCode === 429 || response.statusCode === 400) {
console.log('rate limited! Waiting for retry!')
retryRequest()
} else {