From: Tomas Doran Date: Sun, 10 Jan 2010 00:00:43 +0000 (+0000) Subject: Delete code. 64 => 48 subtests failed X-Git-Tag: 5.89000~64 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=c9de76f0b9373971672588bb262178543ad823ea Delete code. 64 => 48 subtests failed --- diff --git a/lib/Catalyst/Engine.pm b/lib/Catalyst/Engine.pm index 35ab188..d2accd8 100644 --- a/lib/Catalyst/Engine.pm +++ b/lib/Catalyst/Engine.pm @@ -432,7 +432,7 @@ sub prepare_connection { $request->protocol( $env->{SERVER_PROTOCOL} ); $request->remote_user( $env->{REMOTE_USER} ); $request->method( $env->{REQUEST_METHOD} ); - $request->secure( $env->{'psgi.url_scheme'} eq 'https' ); + $request->secure( $env->{'psgi.url_scheme'} eq 'https' ? 1 : 0 ); return; } @@ -518,7 +518,7 @@ sub prepare_path { # set the request URI my $req_uri = $env->{REQUEST_URI}; $req_uri =~ s/\?.*$//; - my $path = $self->unescape_uri($req_uri); + my $path = $req_uri; $path =~ s{^/+}{}; # Using URI directly is way too slow, so we construct the URLs manually @@ -531,10 +531,6 @@ sub prepare_path { $host .= ":$port"; } - # Escape the path - $path =~ s/([^$URI::uric])/$URI::Escape::escapes{$1}/go; - $path =~ s/\?/%3F/g; # STUPID STUPID SPECIAL CASE - my $query = $env->{QUERY_STRING} ? '?' . $env->{QUERY_STRING} : ''; my $uri = $scheme . '://' . $host . '/' . $path . $query;