--- AnyEvent-HTTP/HTTP.pm 2011/01/11 06:38:47 1.93 +++ AnyEvent-HTTP/HTTP.pm 2011/01/18 09:33:35 1.96 @@ -17,7 +17,7 @@ This module implements a simple, stateless and non-blocking HTTP client. It supports GET, POST and other request methods, cookies and more, -all on a very low level. It can follow redirects supports proxies and +all on a very low level. It can follow redirects, supports proxies, and automatically limits the number of connections to the values specified in the RFC. @@ -48,7 +48,7 @@ use base Exporter::; -our $VERSION = '2.01'; +our $VERSION = '2.02'; our @EXPORT = qw(http_get http_post http_head http_request); @@ -548,7 +548,7 @@ $value =~ s/\\(.)/$1/gs; } - push @kv, lc $name, $value; + push @kv, @kv ? lc $name : $name, $value; last unless /\G\s*;/gc; } @@ -1334,7 +1334,7 @@ =head2 HTTP/1.1 FILE DOWNLOAD -Downloading files with HTTP cna be quite tricky, especially when something +Downloading files with HTTP can be quite tricky, especially when something goes wrong and you want tor esume. Here is a function that initiates and resumes a download. It uses the