mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-21 19:34:52 +00:00
Use 'Content-Type: multipart/form-data; boundary=Ym91bmRhcnk' to send multi-part data.
This commit is contained in:
@@ -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' ) {
|
||||
|
Reference in New Issue
Block a user