httpswift / swifter

Tiny http server engine written in Swift programming language.
BSD 3-Clause "New" or "Revised" License
3.87k stars 538 forks source link

404 Not Found #527

Closed ajitam closed 8 months ago

ajitam commented 1 year ago

Hello, I have a task of "reviving" someone else iOS app which uses your (Swifter) library. I've encountered quite weird problem:

Here is the setup:

Main problem is that I get Status code: 404

Here are my findings:

Is there something with directories that is blocking (permissions or sth)?

Thx for the help

janek commented 9 months ago

I'm having the same issue. I'm trying to serve local files and open them in a webview in the same app. Like above, I can confim that files are there (e.g. I can open the files in webview directly with webView.loadFileURL) and I can confirm that Swifter is working by getting a reponse from it. But I get a 404 when trying to serve the local files via Swifter.

Please let me know if anyone has been able to find a workaround, or can recommend an alternative solution (library) for this problem.