(w)->s->io_buffer_size_set = (c)->io_buffer_size_set; \
} while (0)
+#define PROXY_DO_100_CONTINUE(w, r) \
+((w)->s->ping_timeout_set \
+ && ((w)->s->ping_timeout >= 0) \
+ && (PROXYREQ_REVERSE == (r)->proxyreq) \
+ && !(apr_table_get((r)->subprocess_env, "force-proxy-request-1.0")) \
+ && ap_request_has_body((r)))
+
/* use 2 hashes */
typedef struct {
unsigned int def;
dconf = ap_get_module_config(r->per_dir_config, &proxy_module);
- do_100_continue = (worker->s->ping_timeout_set
- && (worker->s->ping_timeout >= 0)
- && (PROXYREQ_REVERSE == r->proxyreq)
- && !(apr_table_get(r->subprocess_env, "force-proxy-request-1.0"))
- && ap_request_has_body(r));
+ do_100_continue = PROXY_DO_100_CONTINUE(worker, r);
bb = apr_brigade_create(p, c->bucket_alloc);
pass_bb = apr_brigade_create(p, c->bucket_alloc);
* We also make sure we won't be talking HTTP/1.0 as well.
*/
fpr1 = apr_table_get(r->subprocess_env, "force-proxy-request-1.0");
- do_100_continue = (worker->s->ping_timeout_set
- && (worker->s->ping_timeout >= 0)
- && (PROXYREQ_REVERSE == r->proxyreq)
- && !(fpr1)
- && ap_request_has_body(r));
+ do_100_continue = PROXY_DO_100_CONTINUE(worker, r);
if (fpr1) {
/*