Created
February 13, 2011 18:43
-
-
Save miyagawa/824938 to your computer and use it in GitHub Desktop.
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
diff --git a/lib/Twiggy/Server.pm b/lib/Twiggy/Server.pm | |
index 579c884..e08bd05 100644 | |
--- a/lib/Twiggy/Server.pm | |
+++ b/lib/Twiggy/Server.pm | |
@@ -288,7 +288,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}) { # && $env->{REQUEST_METHOD} =~ /^(?:POST|PUT)$/) { | |
$self->_read_chunk($sock, $env->{CONTENT_LENGTH}, sub { | |
my ($data) = @_; | |
open my $input, '<', \$data; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment