Proposed change to webzmachine.

9 views
Skip to first unread message

Marc Worrell

unread,
Dec 29, 2011, 6:00:30 AM12/29/11
to zotonic-d...@googlegroups.com
Dear all,

For some extra checks on the request it could be nice when the Zotonic core routines could abandon a request with an error code.
I am specifically thinking of checks on the size/number of entities in the POST body.

Is it a solution to add a throw with an optional status code or description?

Another idea is to move parsing the request vars to some default state handler in webzmachine.

Any ideas?

- Marc

M-MZ

unread,
Dec 29, 2011, 8:04:07 AM12/29/11
to zotonic-d...@googlegroups.com
Love it.

Especially the z_max_post_length size parameter, which could have a sensible default if not set. The thing is that it should be possible to fetch this code before reading and parsing the entire post. Is that possible? 

Maas


Reply all
Reply to author
Forward
0 new messages