Skip to content

Commit

Permalink
I changed my mind
Browse files Browse the repository at this point in the history
  • Loading branch information
ardek66 committed May 24, 2022
1 parent b529345 commit 1fc68b0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/geminim.nim
Original file line number Diff line number Diff line change
Expand Up @@ -191,13 +191,11 @@ proc processGeminiRequest(server: Server, req: Request): Future[Response] {.asyn

result =
if maybeZone.isSome(): maybeZone.get()

elif fileExists(req.res.filePath):
await server.serveFile(req.res.filePath)

elif dirExists(req.res.filePath):
await server.serveDir(req.res.filePath, req.res.resPath)

else:
response(StatusNotFound, "'" & req.res.uri.path & "' NOT FOUND")

Expand Down

1 comment on commit 1fc68b0

@SolitudeSF
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will impact the economy

Please sign in to comment.