Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ngx_postgres_handler discards $request_body #5

Closed
cwells opened this issue Aug 14, 2010 · 2 comments
Closed

ngx_postgres_handler discards $request_body #5

cwells opened this issue Aug 14, 2010 · 2 comments

Comments

@cwells
Copy link

cwells commented Aug 14, 2010

Example #5 of the README demonstrates a simple RESTful API, but a useful API is not really achievable since any POST data is discarded by ngx_postgres_handler, so no records can be added or changed unless the data can be calculated within Nginx or PostgreSQL.

@PiotrSikora
Copy link
Contributor

You are correct, but this is by design. POST data should be extracted by ngx_form_input, ngx_lua or similiar module before it reaches ngx_postgres_handler, because by that time it's useless anyway.

@PiotrSikora
Copy link
Contributor

This should be closed.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants