fix: workflow http node timeout & url check (#4175)

This commit is contained in:
zxhlyh
2024-05-08 13:20:26 +08:00
committed by GitHub
parent 4aa21242b6
commit 8137d63000
2 changed files with 3 additions and 6 deletions

View File

@@ -40,9 +40,6 @@ const nodeDefault: NodeDefault<HttpNodeType> = {
if (!errorMessages && !payload.url)
errorMessages = t('workflow.errorMsg.fieldRequired', { field: t('workflow.nodes.http.api') })
if (!errorMessages && !payload.url.startsWith('http://') && !payload.url.startsWith('https://'))
errorMessages = t('workflow.nodes.http.notStartWithHttp')
return {
isValid: !errorMessages,
errorMessage: errorMessages,