(key, val, skipAppend)
| 52754 | const [key, value] = header.split(": "); |
| 52755 | if (value == null || value.length === 0) continue; |
| 52756 | if (headers[key]) headers[key] += `,${value}`; |
| 52757 | else headers[key] = value; |
| 52758 | } |
| 52759 | return headers; |
| 52760 | } |
| 52761 | }; |
| 52762 | function processHeaderValue(key, val, skipAppend) { |
| 52763 | if (val && typeof val === "object") { |
| 52764 | throw new InvalidArgumentError(`invalid ${key} header`); |
| 52765 | } |
| 52766 | val = val != null ? `${val}` : ""; |
| 52767 | if (headerCharRegex.exec(val) !== null) { |
| 52768 | throw new InvalidArgumentError(`invalid ${key} header`); |
| 52769 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…