Bumping versions

This commit is contained in:
buildmaster
2021-02-19 00:20:52 +00:00
parent a69b207c88
commit d062b72805
16 changed files with 23 additions and 23 deletions

View File

@@ -93,13 +93,11 @@ public final class RegexPatterns {
+ value + "\r?\n--.*";
}
public static String multipartFile(Object name, Object filename, Object content,
Object contentType) {
return ".*--(.*)\r?\nContent-Disposition: form-data; name=\"" + name
+ "\"; filename=\"" + filename + "\"\r?\n(Content-Type: "
+ toContentType(contentType)
+ "\r?\n)?(Content-Transfer-Encoding: .*\r?\n)?(Content-Length: \\d+\r?\n)?\r?\n"
+ content + "\r?\n--.*";
public static String multipartFile(Object name, Object filename, Object content, Object contentType) {
return ".*--(.*)\r?\nContent-Disposition: form-data; name=\"" + name + "\"; filename=\"" + filename
+ "\"\r?\n(Content-Type: " + toContentType(contentType)
+ "\r?\n)?(Content-Transfer-Encoding: .*\r?\n)?(Content-Length: \\d+\r?\n)?\r?\n" + content
+ "\r?\n--.*";
}
private static String toContentType(Object contentType) {