Permalink
Browse files

Fix compatibility issue #11 when an empty POST request is sent to a f…

…lup-powered FastCGI backend
  • Loading branch information...
1 parent 3fcf5a3 commit 0aa97bbab466fdfeb432fcc8834d925ae42e1ebe @sciyoshi sciyoshi committed with alobbs Nov 9, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 cherokee/handler_fcgi.c
View
@@ -516,7 +516,7 @@ build_header (cherokee_handler_fcgi_t *hdl, cherokee_buffer_t *buffer)
/* No POST?
*/
- if ((! http_method_with_input (conn->header.method)) || (! conn->post.has_info)) {
+ if ((! http_method_with_input (conn->header.method)) || (! conn->post.has_info) || (! conn->post.len)) {
TRACE (ENTRIES",post", "Post: %s\n", "has no post");
add_empty_packet (hdl, FCGI_STDIN);
}

0 comments on commit 0aa97bb

Please sign in to comment.