Skip to content

Commit 70f33ed

Browse files
authored
Fix header values includes an extra space
1 parent 929c97c commit 70f33ed

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)