Skip to content

Commit

Permalink
fix zero length header value bug in Mojolicious::Command::get
Browse files Browse the repository at this point in the history
  • Loading branch information
jberger committed Jun 25, 2016
1 parent a004f84 commit 1ef8a57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Changes
Expand Up @@ -10,6 +10,8 @@
loaded.
- Fixed trailing slash bug in Mojo::URL.
- Fixed a few whitespace bugs in Mojo::DOM.
- Fixed a bug causing headers with zero length values to be ignored by the get
command. (jberger)

6.66 2016-06-16
- Fixed support for CONNECT requests without keep alive connections in
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Command/get.pm
Expand Up @@ -29,7 +29,7 @@ sub run {
my $selector = shift @args;

# Parse header pairs
my %headers = map { /^\s*([^:]+)\s*:\s*(.+)$/ ? ($1, $2) : () } @headers;
my %headers = map { /^\s*([^:]+)\s*:\s*(.*+)$/ ? ($1, $2) : () } @headers;

# Detect proxy for absolute URLs
my $ua = Mojo::UserAgent->new(ioloop => Mojo::IOLoop->singleton);
Expand Down

0 comments on commit 1ef8a57

Please sign in to comment.