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