Created
July 4, 2011 06:06
-
-
Save hayajo/1062957 to your computer and use it in GitHub Desktop.
Plack::HTTPParser::PP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- Plack/HTTPParser/PP.pm.org 2011-05-26 16:21:15.000000000 +0900 | |
+++ Plack/HTTPParser/PP.pm 2011-07-01 17:23:18.000000000 +0900 | |
@@ -52,7 +52,7 @@ | |
$env->{REQUEST_URI} = $uri; | |
my($path, $query) = ( $uri =~ /^([^?]*)(?:\?(.*))?$/s ); | |
- for ($path, $query) { s/\#.*$// if length } # dumb clients sending URI fragments | |
+ for ($path, $query) { s/\#.*$// if (defined && length) } # dumb clients sending URI fragments | |
$env->{PATH_INFO} = URI::Escape::uri_unescape($path); | |
$env->{QUERY_STRING} = $query || ''; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
直ってた
miyagawa/Plack@0cf44ef#lib/Plack/HTTPParser/PP.pm