diff --git a/dependency-reduced-pom.xml b/dependency-reduced-pom.xml index d407f56..a3a8ee3 100644 --- a/dependency-reduced-pom.xml +++ b/dependency-reduced-pom.xml @@ -3,7 +3,7 @@ 4.0.0 org.openautonomousconnection WebServer - 1.0.1-BETA.0.4 + 1.0.1-BETA.0.5 The default DNS-Server https://open-autonomous-connection.org/ diff --git a/src/main/java/org/openautonomousconnection/webserver/api/WebPage.java b/src/main/java/org/openautonomousconnection/webserver/api/WebPage.java index 57345f5..a9e688a 100644 --- a/src/main/java/org/openautonomousconnection/webserver/api/WebPage.java +++ b/src/main/java/org/openautonomousconnection/webserver/api/WebPage.java @@ -42,11 +42,11 @@ public abstract class WebPage { */ public WebPage() { this.document = documentBuilder.newDocument(); + this.head = (HTMLHeadElement) this.document.createElement("head"); this.body = (HTMLBodyElement) this.document.createElement("body"); this.document.appendChild(this.head); - this.document.appendChild(this.body); }