From ee57821c87a3d90114271edf8d1bf9c3387b0c33 Mon Sep 17 00:00:00 2001 From: NorbiPeti Date: Tue, 6 Jun 2017 07:57:49 +0200 Subject: [PATCH 1/2] Fixed keystore password That's what you get for getting the code from at least 3 different stack overflow threads --- src/buttondevteam/website/ButtonWebsiteModule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/buttondevteam/website/ButtonWebsiteModule.java b/src/buttondevteam/website/ButtonWebsiteModule.java index cd94f71..0cd56e5 100644 --- a/src/buttondevteam/website/ButtonWebsiteModule.java +++ b/src/buttondevteam/website/ButtonWebsiteModule.java @@ -42,7 +42,7 @@ public class ButtonWebsiteModule extends JavaPlugin { String certfile = "domain-chain.crt"; /* your cert path */ File keystoreFile = new File("keystore.keystore"); - ks.load(keystoreFile.exists() ? new FileInputStream(keystoreFile) : null, "somepass".toCharArray()); + ks.load(keystoreFile.exists() ? new FileInputStream(keystoreFile) : null, password); String alias = "chroma"; From 4707c4fe2f95d1d4c45f3f0c42ace3af85ca91e7 Mon Sep 17 00:00:00 2001 From: alisolarflare Date: Sat, 10 Jun 2017 00:19:07 -0700 Subject: [PATCH 2/2] Proposed change to implement Feature requeeeessssst --- src/buttondevteam/website/io/Response.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/buttondevteam/website/io/Response.java b/src/buttondevteam/website/io/Response.java index a7155aa..9cd9db0 100644 --- a/src/buttondevteam/website/io/Response.java +++ b/src/buttondevteam/website/io/Response.java @@ -12,4 +12,9 @@ public class Response { this.content = content; this.exchange = exchange; } + public Response(int code, String[] content, HttpExchange exchange) { + this.code = code; + this.content = String.join("", content); + this.exchange = exchange; + } }