Skip to content

Commit

Permalink
fixed get command to allow ":" character in header values (closes #373)
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Aug 20, 2012
1 parent 1c6c2fd commit 018e546
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Changes
Expand Up @@ -12,6 +12,7 @@
- Fixed json_has method in Test::Mojo.
- Fixed bug in Mojo::Log that prevented some message events from being
emitted.
- Fixed get command to allow ":" character in header values.
- Fixed small class_to_file bug.
- Fixed a few small namespace handling bugs.

Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Command/get.pm
Expand Up @@ -54,7 +54,7 @@ sub run {

# Headers
my %headers;
/^\s*([^:]+)\s*:\s*([^:]+)\s*$/ and $headers{$1} = $2 for @headers;
/^\s*([^:]+)\s*:\s*(.+)$/ and $headers{$1} = $2 for @headers;

# URL and selector
die $self->usage unless my $url = decode 'UTF-8', shift @args // '';
Expand Down

0 comments on commit 018e546

Please sign in to comment.