mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 19:33:02 +03:00
Added timeout to external requests
no refs - got doesn't have a timeout by default - we think we might have hanging jobs because of this
This commit is contained in:
parent
9a2d765c73
commit
5d00b64e27
@ -42,6 +42,7 @@ const externalRequest = got.extend({
|
||||
headers: {
|
||||
'user-agent': 'Ghost(https://github.com/TryGhost/Ghost)'
|
||||
},
|
||||
timeout: 10000, // default is no timeout
|
||||
hooks: {
|
||||
init: [(options) => {
|
||||
if (!options.hostname || !validator.isURL(options.hostname)) {
|
||||
|
Loading…
Reference in New Issue
Block a user