Fixes #451
This commit is contained in:
parent
400d0319ab
commit
4237c6e21a
@ -28,7 +28,7 @@ ext {
|
||||
date = git.head().date.format("yy.MM.dd")
|
||||
revision = "-${git.head().abbreviatedId}"
|
||||
parents = git.head().parentIds;
|
||||
index = -82; // Offset to mach CI
|
||||
index = -84; // Offset to mach CI
|
||||
int major, minor, patch;
|
||||
major = minor = patch = 0;
|
||||
for (;parents != null && !parents.isEmpty();index++) {
|
||||
|
@ -369,10 +369,10 @@ public class MainUtil {
|
||||
writer.append("--" + boundary + "--").append(CRLF).flush();
|
||||
}
|
||||
int responseCode = ((HttpURLConnection) con).getResponseCode();
|
||||
java.util.Scanner scanner = new java.util.Scanner(con.getInputStream()).useDelimiter("\\A");
|
||||
String content = scanner.next().trim();
|
||||
scanner.close();
|
||||
Fawe.debug(content);
|
||||
// java.util.Scanner scanner = new java.util.Scanner(con.getInputStream()).useDelimiter("\\A");
|
||||
// String content = scanner.next().trim();
|
||||
// scanner.close();
|
||||
// Fawe.debug(content);
|
||||
if (responseCode == 200) {
|
||||
return url;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user