--- AnyEvent-HTTP/HTTP.pm 2011/01/18 17:50:20 1.97 +++ AnyEvent-HTTP/HTTP.pm 2011/01/28 01:28:03 1.100 @@ -715,7 +715,7 @@ my $timeout = $arg{timeout} || $TIMEOUT; my ($uscheme, $uauthority, $upath, $query, undef) = # ignore fragment - $url =~ m|(?:([^:/?#]+):)?(?://([^/?#]*))?([^?#]*)(?:(\?[^#]*))?(?:#(.*))?|; + $url =~ m|^([^:]+):(?://([^/?#]*))?([^?#]*)(?:(\?[^#]*))?(?:#(.*))?$|; $uscheme = lc $uscheme; @@ -1335,7 +1335,7 @@ =head2 HTTP/1.1 FILE DOWNLOAD Downloading files with HTTP can be quite tricky, especially when something -goes wrong and you want tor esume. +goes wrong and you want to resume. Here is a function that initiates and resumes a download. It uses the last modified time to check for file content changes, and works with many