X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FEngine.pm;h=564cb42447dd573abc234c6e8ac70911efb6305b;hb=6a44fe01d6d82796cfd1b514676efc9fc2cf7de6;hp=fea294ed9b08ca90ae7c46aad29e1877b29af20f;hpb=0c1ba625777a153037361eb3cf0a9542b022a9bc;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Engine.pm b/lib/Catalyst/Engine.pm index fea294e..564cb42 100644 --- a/lib/Catalyst/Engine.pm +++ b/lib/Catalyst/Engine.pm @@ -20,11 +20,6 @@ use overload '""' => sub { return ref shift }, fallback => 1; # Amount of data to read from input on each pass our $CHUNKSIZE = 64 * 1024; -# See if we can use libapreq2 for URI unescaping -use constant HAS_APR => eval { - require APR::Request; -}; - =head1 NAME Catalyst::Engine - The Catalyst Engine @@ -641,18 +636,14 @@ sub write { =head2 $self->unescape_uri($uri) -Unescapes a given URI using the most efficient method available. Engines -can subclass to provide faster implementations. +Unescapes a given URI using the most efficient method available. Engines such +as Apache may implement this using Apache's C-based modules, for example. =cut sub unescape_uri { my $self = shift; - if ( HAS_APR ) { - return APR::Request::decode(@_); - } - my $e = URI::Escape::uri_unescape(@_); $e =~ s/\+/ /g;