Skip to content

Commit

Permalink
o
Browse files Browse the repository at this point in the history
  • Loading branch information
bung87 committed May 3, 2023
1 parent 9b97511 commit 0bcc017
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scorper/http/streamserver.nim
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ proc serveStatic*(req: Request) {.async.} =
var relPath: string
try:
relPath = decodeUrlComponent(req.url.path.relativePath(cast[ImpRequest](req).prefix))
except CatchableError:
except Exception:
discard
if not hasSuffix(relPath):
relPath = relPath / "index.html"
Expand Down

0 comments on commit 0bcc017

Please sign in to comment.