From 685b4b9c87e4fb5b2a3e97c7701ed14696ad1e73 Mon Sep 17 00:00:00 2001 From: Ryan Oldenburg Date: Tue, 30 Jan 2024 18:43:29 -0600 Subject: [PATCH 1/2] small --- src/puppy/platforms/win32/platform.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/puppy/platforms/win32/platform.nim b/src/puppy/platforms/win32/platform.nim index cb8a14a..a7cdf4d 100644 --- a/src/puppy/platforms/win32/platform.nim +++ b/src/puppy/platforms/win32/platform.nim @@ -61,8 +61,8 @@ proc internalFetch*(req: Request): Response {.raises: [PuppyError].} = openRequestFlags = openRequestFlags or WINHTTP_FLAG_SECURE var objectName = req.url.path - if req.url.search != "": - objectName &= "?" & req.url.search + if req.url.query.len > 0: + objectName &= "?" & $req.url.query let wideVerb = req.verb.toUpperAscii().wstr() From 3bdd43c87f71441295f7adee36079f983c3969d0 Mon Sep 17 00:00:00 2001 From: Ryan Oldenburg Date: Tue, 30 Jan 2024 18:44:42 -0600 Subject: [PATCH 2/2] 2.1.1 --- .github/workflows/build.yml | 2 +- puppy.nimble | 2 +- tests/debug_server.nim | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 477beb4..707f17c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,7 +24,7 @@ jobs: - run: nimble install -y libcurl - run: nimble install -y zippy - - run: nimble install -y urlly + - run: nimble install -y webby - run: nim c tests/debug_server.nim - run: nimble test -y --gc:refc diff --git a/puppy.nimble b/puppy.nimble index c19c021..8dfcae7 100644 --- a/puppy.nimble +++ b/puppy.nimble @@ -1,4 +1,4 @@ -version = "2.1.0" +version = "2.1.1" author = "Andre von Houck" description = "Puppy fetches resources via HTTP and HTTPS." license = "MIT" diff --git a/tests/debug_server.nim b/tests/debug_server.nim index c25a582..179837b 100644 --- a/tests/debug_server.nim +++ b/tests/debug_server.nim @@ -1,4 +1,4 @@ -import asyncdispatch, asynchttpserver, uri, urlly, zippy +import asyncdispatch, asynchttpserver, uri, webby, zippy let server = newAsyncHttpServer()