mirror of
https://github.com/foss42/apidash.git
synced 2025-05-24 01:36:46 +08:00
custom boundary creation for heredoc
This commit is contained in:
@ -83,6 +83,13 @@ puts "Response Body: #{response.body}"
|
|||||||
}) {
|
}) {
|
||||||
try {
|
try {
|
||||||
String result = "";
|
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) {
|
} catch (e) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user