mirror of
https://github.com/usebruno/bruno.git
synced 2026-07-01 00:24:08 +00:00
fix(cli): skip headers with empty name when building request (#7869)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user