mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 977931 - return an error object even when restResponse.headers is null. r=spenrose
This commit is contained in:
parent
e255731d1e
commit
df34c67f0f
@ -71,7 +71,7 @@ this.HawkClient.prototype = {
|
||||
code: restResponse.status,
|
||||
errno: restResponse.status
|
||||
};
|
||||
let retryAfter = restResponse.headers["retry-after"];
|
||||
let retryAfter = restResponse.headers && restResponse.headers["retry-after"];
|
||||
retryAfter = retryAfter ? parseInt(retryAfter) : retryAfter;
|
||||
if (retryAfter) {
|
||||
errorObj.retryAfter = retryAfter;
|
||||
|
Loading…
Reference in New Issue
Block a user