format code
This commit is contained in:
parent
1c0bf5697f
commit
ca0b9bca33
|
|
@ -27,7 +27,7 @@ if (config.proxy && config.proxy.protocol && typeof config.proxy.protocol === 's
|
|||
const custom = got.extend({
|
||||
retry: {
|
||||
retries: config.requestRetry,
|
||||
statusCodes: [408, 413, 429, 500, 502, 503, 504, 404] // add 404 to default for unit test
|
||||
statusCodes: [408, 413, 429, 500, 502, 503, 504, 404], // add 404 to default for unit test
|
||||
},
|
||||
hooks: {
|
||||
beforeRetry: [
|
||||
|
|
@ -51,10 +51,10 @@ const custom = got.extend({
|
|||
},
|
||||
],
|
||||
onError: [
|
||||
error => {
|
||||
(error) => {
|
||||
error.response.status = error.response.statusCode;
|
||||
return error;
|
||||
}
|
||||
},
|
||||
],
|
||||
},
|
||||
agent: agent,
|
||||
|
|
|
|||
Loading…
Reference in New Issue