apex icon indicating copy to clipboard operation
apex copied to clipboard

Post request params are empty

Open tsugua opened this issue 8 years ago • 4 comments

Setting up in an apex server:

post "/test" do |request| p request.params end

When I post from a web page the params show up properly but Apex reports them back as empty or {}

tsugua avatar Aug 16 '15 17:08 tsugua

Checking it out.

jamonholmgren avatar Aug 16 '15 19:08 jamonholmgren

This problem appears a bit more than I have time for today, unfortunately. I've dug into it a bit and I think I need to do a bit of a rewrite to make Apex work properly.

I hate to pull this card, but Apex is pretty early/experimental (version 0.1.0), and has implementation issues that I'm going to need to redo. For example, we're adding a default handler to deal with every request and doing our own routing when in fact we should be adding specific handlers. ¯_(ツ)_/¯

I apologize for that. At some point I'll have time to tackle this again.

jamonholmgren avatar Aug 16 '15 23:08 jamonholmgren

Seems like for post?, adding raw.arguments to query would be a stopgap?

tpitale avatar Oct 27 '15 04:10 tpitale

Good point.

jamonholmgren avatar Oct 27 '15 17:10 jamonholmgren