From 813ef162cb8e92567a9400dad07438c9550edb96 Mon Sep 17 00:00:00 2001 From: bung87 Date: Sun, 11 Jun 2023 19:15:34 +0800 Subject: [PATCH] v1.1.5 --- scorper.nimble | 2 +- src/scorper/http/streamserver.nim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scorper.nimble b/scorper.nimble index 23b5a0f..032605a 100644 --- a/scorper.nimble +++ b/scorper.nimble @@ -1,6 +1,6 @@ # Package -version = "1.1.4" +version = "1.1.5" author = "bung87" description = "micro and elegant web framework" license = "Apache License 2.0" diff --git a/src/scorper/http/streamserver.nim b/src/scorper/http/streamserver.nim index 04fb7da..9082162 100644 --- a/src/scorper/http/streamserver.nim +++ b/src/scorper/http/streamserver.nim @@ -713,7 +713,7 @@ proc processRequest( return true req.path = scorper.httpParser.getPath() - const prefix = "http://" & (when isSecurity: "s" else: "") + const prefix = "http" & (when isSecurity: "s" else: "") & "://" try: req.url = parseUrl(prefix & req.hostname & req.path)[] except ValueError as e: