Fix Backoff and Retry-After header parsing

This commit is contained in:
Dan Stillman 2018-06-12 15:13:00 -04:00
parent 79d7c15d4f
commit 5ddbe433b9
2 changed files with 4 additions and 4 deletions

View file

@ -174,7 +174,7 @@ describe("Zotero.Sync.APIClient", function () {
req.respond(
503,
{
"Retry-After": 5
"Retry-After": "5"
},
""
);
@ -183,7 +183,7 @@ describe("Zotero.Sync.APIClient", function () {
req.respond(
503,
{
"Retry-After": 10
"Retry-After": "10"
},
""
);