feat: Allow to change SSL verify in HTTP Node (#22052)

Co-authored-by: crazywoola <427733928@qq.com>
This commit is contained in:
Davide Delbianco
2025-07-09 09:53:24 +02:00
committed by GitHub
parent 89b52471fb
commit 1885426421
25 changed files with 106 additions and 1 deletions

View File

@@ -141,6 +141,13 @@ const useConfig = (id: string, payload: HttpNodeType) => {
setInputs(newInputs)
}, [inputs, setInputs])
const handleSSLVerifyChange = useCallback((checked: boolean) => {
const newInputs = produce(inputs, (draft: HttpNodeType) => {
draft.ssl_verify = checked
})
setInputs(newInputs)
}, [inputs, setInputs])
return {
readOnly,
isDataReady,
@@ -164,6 +171,8 @@ const useConfig = (id: string, payload: HttpNodeType) => {
toggleIsParamKeyValueEdit,
// body
setBody,
// ssl verify
handleSSLVerifyChange,
// authorization
isShowAuthorization,
showAuthorization,