[Catalyst-commits] r12585 -
Catalyst-Runtime/5.80/branches/psgi/lib/Catalyst
t0m at dev.catalyst.perl.org
t0m at dev.catalyst.perl.org
Sun Jan 10 00:00:44 GMT 2010
Author: t0m
Date: 2010-01-10 00:00:43 +0000 (Sun, 10 Jan 2010)
New Revision: 12585
Modified:
Catalyst-Runtime/5.80/branches/psgi/lib/Catalyst/Engine.pm
Log:
Delete code. 64 => 48 subtests failed
Modified: Catalyst-Runtime/5.80/branches/psgi/lib/Catalyst/Engine.pm
===================================================================
--- Catalyst-Runtime/5.80/branches/psgi/lib/Catalyst/Engine.pm 2010-01-09 23:03:58 UTC (rev 12584)
+++ Catalyst-Runtime/5.80/branches/psgi/lib/Catalyst/Engine.pm 2010-01-10 00:00:43 UTC (rev 12585)
@@ -432,7 +432,7 @@
$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 @@
# 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 @@
$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;
More information about the Catalyst-commits
mailing list