custom boundary creation for heredoc

This commit is contained in:
adityamayukhsom
2024-03-28 03:58:55 +05:30
parent 3b93bb3f86
commit 0150675f9f

View File

@ -83,6 +83,13 @@ puts "Response Body: #{response.body}"
}) {
try {
String result = "";
if (boundary != null) {
// boundary needs to start with a character, hence we append apidash
// and remove hyphen characters from the existing boundary
boundary = "apidash_${boundary.replaceAll(RegExp("-"), "")}";
}
} catch (e) {
return null;
}