Skip to content

Commit b9c9818

Browse files
committed
Make Mojo::Headers a little stricter
1 parent 77a920f commit b9c9818

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Mojo/Headers.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ sub parse {
123123
}
124124

125125
# New header
126-
if ($line =~ /^(\S[^:]*)\s*:\s*(.*)$/) { push @$headers, [$1, $2] }
126+
if ($line =~ /^(\S[^:]*):\s*(.*)$/) { push @$headers, [$1, $2] }
127127

128128
# Multi-line
129129
elsif ($line =~ s/^\s+// && @$headers) { $headers->[-1][1] .= " $line" }

0 commit comments

Comments
 (0)