Use 'Content-Type: multipart/form-data; boundary=Ym91bmRhcnk' to send multi-part data.

This commit is contained in:
Daniel Nichter
2013-03-21 07:52:21 -06:00
parent cf0342c69e
commit 0e9e897791
5 changed files with 54 additions and 39 deletions

View File

@@ -35,12 +35,14 @@ sub new {
post => [],
put => [],
},
last_request => undef,
};
return bless $self, $class;
}
sub request {
my ($self, $req) = @_;
$self->{last_request} = $req;
my $type = lc($req->method);
push @{$self->{requests}}, uc($type) . ' ' . $req->uri;
if ( $type eq 'post' || $type eq 'put' ) {