Fix HTTPMicro POST: attach content to request. Validate type.

This commit is contained in:
Daniel Nichter
2012-08-10 11:00:26 -06:00
parent 70c295bc0a
commit cdc51df9e6
4 changed files with 61 additions and 3 deletions

View File

@@ -138,6 +138,7 @@ sub _prepare_headers_and_cb {
utf8::downgrade($args->{content}, 1)
or Carp::croak(q/Wide character in request message body/);
$request->{headers}{'content-length'} = length $args->{content};
$request->{content} = $args->{content};
}
return;
}