*/
/*
- * To be compliant, we only use 100-Continue for requests with no bodies.
+ * To be compliant, we only use 100-Continue for requests with bodies.
* We also make sure we won't be talking HTTP/1.0 as well.
*/
do_100_continue = (worker->ping_timeout_set
&& !r->header_only
- && !r->kept_body
- && !(apr_table_get(r->headers_in, "Content-Length"))
- && !(apr_table_get(r->headers_in, "Transfer-Encoding"))
+ && (r->kept_body
+ || apr_table_get(r->headers_in, "Content-Length")
+ || apr_table_get(r->headers_in, "Transfer-Encoding"))
&& (PROXYREQ_REVERSE == r->proxyreq)
&& !(apr_table_get(r->subprocess_env, "force-proxy-request-1.0")));
do_100_continue = (worker->ping_timeout_set
&& !r->header_only
- && !r->kept_body
- && !(apr_table_get(r->headers_in, "Content-Length"))
- && !(apr_table_get(r->headers_in, "Transfer-Encoding"))
+ && (r->kept_body
+ || apr_table_get(r->headers_in, "Content-Length")
+ || apr_table_get(r->headers_in, "Transfer-Encoding"))
&& (PROXYREQ_REVERSE == r->proxyreq)
&& !(apr_table_get(r->subprocess_env, "force-proxy-request-1.0")));