aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/App.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/App.kt')
-rw-r--r--src/main/kotlin/App.kt7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/main/kotlin/App.kt b/src/main/kotlin/App.kt
index 50c7c18..ebdb560 100644
--- a/src/main/kotlin/App.kt
+++ b/src/main/kotlin/App.kt
@@ -40,12 +40,7 @@ fun main() {
* Normalizes and cleans the requested url
*/
before("/*") { ctx ->
- run {
- if (URI(ctx.url()).normalize().toString() != ctx.url()) {
- log.warning("Normalized url from ${ctx.url()} to ${URI(ctx.url()).normalize()}")
- ctx.redirect(URI(ctx.url()).normalize().toString())
- }
- }
+ if (URI(ctx.url()).normalize().toString() != ctx.url()) ctx.redirect(URI(ctx.url()).normalize().toString())
}
/**