Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
miyagawa committed May 26, 2011
1 parent dec9090 commit 35a77d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Plack/HTTPParser/PP.pm
Expand Up @@ -52,7 +52,7 @@ sub _parse_header {
$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 length } # dumb clients sending URI fragments

$env->{PATH_INFO} = URI::Escape::uri_unescape($path);
$env->{QUERY_STRING} = $query || '';
Expand Down

0 comments on commit 35a77d9

Please sign in to comment.