Fix: HTTP request node PARAMS parameters, if ':' appears in the value… (#4403)

Co-authored-by: Haolin Wang-汪皓临 <haolin.wang@atlaslovestravel.com>
pull/4497/head
wanghl 2 years ago committed by GitHub
parent ba06447cd5
commit e90eccdf92
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -6,11 +6,11 @@ import type { KeyValue } from '../types'
const UNIQUE_ID_PREFIX = 'key-value-'
const strToKeyValueList = (value: string) => {
return value.split('\n').map((item) => {
const [key, value] = item.split(':')
const [key, ...others] = item.split(':')
return {
id: uniqueId(UNIQUE_ID_PREFIX),
key: key.trim(),
value: value?.trim(),
value: others.join(':').trim(),
}
})
}

Loading…
Cancel
Save