mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-23 12:47:56 +00:00
Use 'Content-Type: multipart/form-data; boundary=Ym91bmRhcnk' to send multi-part data.
This commit is contained in:
@@ -1,8 +1,13 @@
|
||||
--Ym91bmRhcnk
|
||||
Content-Disposition: form-data; name="agent"
|
||||
|
||||
{
|
||||
"hostname" : "prod1",
|
||||
"uuid" : "123"
|
||||
}
|
||||
--Ym91bmRhcnk=
|
||||
--Ym91bmRhcnk
|
||||
Content-Disposition: form-data; name="data"
|
||||
|
||||
[
|
||||
{
|
||||
"attributes" : {
|
||||
@@ -74,3 +79,4 @@
|
||||
}
|
||||
}
|
||||
]
|
||||
--Ym91bmRhcnk
|
||||
|
@@ -138,6 +138,12 @@ ok(
|
||||
"Removed data file after sending successfully"
|
||||
);
|
||||
|
||||
is(
|
||||
$ua->{last_request}->header('content-type'),
|
||||
'multipart/form-data; boundary=Ym91bmRhcnk',
|
||||
'Content-Type=multipart/form-data; boundary=Ym91bmRhcnk'
|
||||
) or diag(Dumper($ua));
|
||||
|
||||
# #############################################################################
|
||||
# Done.
|
||||
# #############################################################################
|
||||
|
Reference in New Issue
Block a user