Since Aloe Express (the HTTP server written in Xojo by @Tim_Dietrich) was abandoned, @DerkJ has rewritten it for API 2.0 and renamed it Express. I’ve recently started contributing to the project through a fork as I need it for an app I’m working on.
I think I’ve come across a bug in the code but I honestly don’t know enough about the HTTP lifecycle to figure out what’s going on.
If you run the multipart form project (by uncommenting the relevant line in App.RequestHandler and visit inglocalhost:8080) you’ll see this form:
If you pick a file to upload (anything should do, something small preferably) and submit it, the webpage just hangs and then times out. No matter where I set a breakpoint in Express, it never drops into the debugger. It’s like it doesn’t receive the request.
Curiously (and maybe this is unrelated) I noted that if I set a breakpoint in DemoMultipartForms.RequestProcess that is hit even as I type localhost in the browser (macOS Safari).
Can anyone help figure this out and I’d like to either fix this bug or at least improve my understanding of the code?
Either just have a look there what fixes this issue… while I hope that the suggested enhancements and new features will find it’s official way into Express.