Skip to content

Commit 141baee

Browse files
authored
Merge pull request #139 from ori-shalom/patch-1
fix: header args include extra space in header value
2 parents 767ae7d + 70f33ed commit 141baee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ export async function parseCommandLineArgs(args: string[], usage: string) {
534534
while (i < args.length) {
535535
if (args[i] === '--header' && i < args.length - 1) {
536536
const value = args[i + 1]
537-
const match = value.match(/^([A-Za-z0-9_-]+):(.*)$/)
537+
const match = value.match(/^([A-Za-z0-9_-]+):\s*(.*)$/)
538538
if (match) {
539539
headers[match[1]] = match[2]
540540
} else {

0 commit comments

Comments
 (0)