Closed treeform closed 1 year ago
Seems like changing from req.url.path
to just req.path
in scorper/http/streamserver.nim fixes the issue.
I've tried nim c .\examples\hello_world.nim
and nim c .\examples\hello_world_with_router.nim
in nim 1.6.10, urlly@0.2.0, urlly only support old version requires "urlly >= 0.2.0 & < 0.3.0"
feel free to open if this still exists.
urlly don't have path field
type
Url* = ref object
scheme*, username*, password*: string
hostname*, port*, fragment*: string
paths*: seq[string]
query*: QueryParams
writen to
let path = r.url.paths.join("/")
result = fmt"{r.hostname} - {remoteUser} {$now()} "{r.meth} {path} HTTP/{r.protocol.major}.{r.protocol.minor}" {status} {size}"
proc serveStatic have the same problem:
relPath = decodeUrlComponent(req.url.path.relativePath(cast[ImpRequest](req).prefix))
I think some dependency have changed and I just nimble install it and it breaks right a way on the first example: