Updated shutdownToken and added server shutdown description in readme
Change-Id: I30b67730b9d42dd2b8cab2a44f58afa09f475ad9
diff --git a/core/Changes b/core/Changes
index edb5954..5d8758f 100644
--- a/core/Changes
+++ b/core/Changes
@@ -21,7 +21,10 @@
28/01/2019
- Updated Rewrite handler (margaretha)
29/01/2019
- - Handled "no resource found" cases (margaretha, issue #37)
+ - Handled "no resource found" cases (margaretha, issue #37)
+30/01/2019
+ - Updated shutdownToken (margaretha)
+ - Added server shutdown description in readme (margaretha)
version 0.61.4
14/11/2018
diff --git a/core/src/main/java/de/ids_mannheim/korap/server/KustvaktBaseServer.java b/core/src/main/java/de/ids_mannheim/korap/server/KustvaktBaseServer.java
index eb3a76b..c5a8648 100644
--- a/core/src/main/java/de/ids_mannheim/korap/server/KustvaktBaseServer.java
+++ b/core/src/main/java/de/ids_mannheim/korap/server/KustvaktBaseServer.java
@@ -101,7 +101,8 @@
FileOutputStream fos = new FileOutputStream(new File("shutdownToken"));
OutputStreamWriter writer =
new OutputStreamWriter(fos, StandardCharsets.UTF_8.name());
- writer.write(shutdownToken);
+ writer.append("token=");
+ writer.append(shutdownToken);
writer.flush();
writer.close();