Skip to content

Commit

Permalink
wsgi spec says:
Browse files Browse the repository at this point in the history
    #  The contents of any Content-Type fields in the HTTP request. May be empty or absent.
    #  The contents of any Content-Length fields in the HTTP request. May be empty or absent.
  • Loading branch information
tokuhirom committed Sep 6, 2009
1 parent 660ebde commit 6539661
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/PlackX/Request/BodyParser.pm
Expand Up @@ -64,8 +64,8 @@ has _read_position => (
sub BUILDARGS {
my ( $class, $env ) = @_;
+{
content_length => $env->{'CONTENT_LENGTH'},
content_type => $env->{'CONTENT_TYPE'},
content_length => $env->{'CONTENT_LENGTH'} || 0,
content_type => $env->{'CONTENT_TYPE'} || '',
input_handle => $env->{'psgi.input'},
};
}
Expand Down

0 comments on commit 6539661

Please sign in to comment.