mirror of
https://github.com/foss42/apidash.git
synced 2025-05-22 16:57:07 +08:00
custom boundary creation for heredoc
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user