diff --git a/README.md b/README.md
index b2381b17b1..94de66196e 100644
--- a/README.md
+++ b/README.md
@@ -5,4 +5,4 @@
Kweb is a library for building rich web applications in the Kotlin programming language. You can think of it as a
powerful Kotlin DSL that allows you to remote-control web browsers from a web server.
-For more information please visit our main website at [kweb.io](https://kweb.io/).
\ No newline at end of file
+For more information please visit our main website at [kweb.io](http://kweb.io/).
diff --git a/docs/_posts/2017-03-03-getting-started.md b/docs/_posts/2017-03-03-getting-started.md
index 2662052ac8..a70dd79ff8 100644
--- a/docs/_posts/2017-03-03-getting-started.md
+++ b/docs/_posts/2017-03-03-getting-started.md
@@ -74,7 +74,7 @@ For [Maven](https://maven.apache.org/) users, add this to the repositories secti
false
dlbintrayhttp://dl.bintray.com/kotlin/kotlin-eap-1.1
-ktor"http://dl.bintray.com/kotlin/ktor"
+ktorhttp://dl.bintray.com/kotlin/ktor
```
diff --git a/src/main/kotlin/com/github/sanity/kweb/Kweb.kt b/src/main/kotlin/com/github/sanity/kweb/Kweb.kt
index fa55e5e72d..4f4fa36bce 100644
--- a/src/main/kotlin/com/github/sanity/kweb/Kweb.kt
+++ b/src/main/kotlin/com/github/sanity/kweb/Kweb.kt
@@ -77,10 +77,6 @@ class Kweb(val port: Int,
KwebHotswapPlugin.addHotswapReloadListener({refreshAllPages()})
}
- val bootstrapHtmlTemplate = IOUtils.toString(javaClass.getResourceAsStream("kweb_bootstrap.html"), Charsets.UTF_8)
- .replace("", startHeadBuilder.toString())
- .replace("", endHeadBuilder.toString())
-
server= embeddedNettyServer(port) {
install(DefaultHeaders)
install(Routing) {
@@ -93,6 +89,10 @@ class Kweb(val port: Int,
for (plugin in plugins) {
applyPlugin(plugin = plugin, appliedPlugins = mutableAppliedPlugins, endHeadBuilder = endHeadBuilder, startHeadBuilder = startHeadBuilder, routeHandler = this)
}
+
+ val bootstrapHtmlTemplate = IOUtils.toString(javaClass.getResourceAsStream("kweb_bootstrap.html"), Charsets.UTF_8)
+ .replace("", startHeadBuilder.toString())
+ .replace("", endHeadBuilder.toString())
// Setup default KWeb routing.
get("/") {