Skip to content

Commit 01816cb

Browse files
committed
fix: headers iteration in convertToCurl
1 parent 344f6ee commit 01816cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export const convertToCurl = (
116116
let curlCommand = `curl -X ${method.toUpperCase()} "${url}"`;
117117

118118
if (headers) {
119-
for (const [key, value] of Object.entries(headers)) {
119+
for (const [key, value] of headers.entries()) {
120120
curlCommand += ` -H "${key}: ${value}"`;
121121
}
122122
}

0 commit comments

Comments
 (0)