fix(cli): skip headers with empty name when building request (#7869)

This commit is contained in:
Pragadesh-45
2026-05-06 13:57:29 +05:30
committed by GitHub
parent 5cf807b770
commit e92131ff8a
2 changed files with 66 additions and 1 deletions

View File

@@ -30,7 +30,7 @@ const prepareRequest = async (item = {}, collection = {}) => {
const disabledHeaders = [];
each(get(request, 'headers', []), (h) => {
if (h.enabled) {
if (h.enabled && h.name.length > 0) {
headers[h.name] = h.value;
if (h.name.toLowerCase() === 'content-type') {
contentTypeDefined = true;