Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #23 from monken/master

Don't restrict parsing the request body to PUT and POST requests
  • Loading branch information...
commit c9923376b917cff656f6c0b7362daccb07d47113 2 parents 505bb86 + 0bd6314
@miyagawa authored
Showing with 3 additions and 1 deletion.
  1. +2 −0  Changes
  2. +1 −1  lib/Twiggy/Server.pm
View
2  Changes
@@ -1,5 +1,7 @@
Revision history for Perl extension Twiggy
+ - Don't restrict parsing the request body to PUT and POST requests
+
0.1010 Mon Jan 17 17:04:14 PST 2011
- Returning CondVar as a PSGI response is deprecated. Will be removed in the next release
View
2  lib/Twiggy/Server.pm
@@ -292,7 +292,7 @@ sub _run_app {
my($self, $app, $env, $sock) = @_;
unless ($env->{'psgi.input'}) {
- if ($env->{CONTENT_LENGTH} && $env->{REQUEST_METHOD} =~ /^(?:POST|PUT)$/) {
+ if ($env->{CONTENT_LENGTH}) {
$self->_read_chunk($sock, $env->{CONTENT_LENGTH}, sub {
my ($data) = @_;
open my $input, '<', \$data;
Please sign in to comment.
Something went wrong with that request. Please try again.