mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05: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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue