diff options
author | William A. Rowe Jr <wrowe@apache.org> | 2005-08-08 03:20:27 +0000 |
---|---|---|
committer | William A. Rowe Jr <wrowe@apache.org> | 2005-08-08 03:20:27 +0000 |
commit | f6ee954c07bde914bcf7db1452be184aebb356dc (patch) | |
tree | 4384fd6d4951250112fe1617379e14dcc80f0ee9 | |
parent | ae8bc0438b48b7f47ed6a2114036bb22c52592ad (diff) | |
download | httpd-f6ee954c07bde914bcf7db1452be184aebb356dc.tar.gz |
Fix some very minor nits in ap_proxy_http_request() which make it
quite simple to diff to the current trunk/ code, ensuring the most
accurate review possible.
Consists only of whitespace and line spacing changes, and a change
from 'bb' to 'header_brigade' for this local argument variable's name,
so there are no functional changes here.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/proxy-reqbody-2.0.x@230741 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | modules/proxy/proxy_http.c | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/modules/proxy/proxy_http.c b/modules/proxy/proxy_http.c index 3f02e479a4..7bcc9141ba 100644 --- a/modules/proxy/proxy_http.c +++ b/modules/proxy/proxy_http.c @@ -789,7 +789,8 @@ apr_status_t ap_proxy_http_request(apr_pool_t *p, request_rec *r, proxy_http_conn_t *p_conn, conn_rec *origin, proxy_server_conf *conf, apr_uri_t *uri, - char *url, apr_bucket_brigade *bb, + char *url, + apr_bucket_brigade *header_brigade, char *server_portstr) { conn_rec *c = r->connection; @@ -831,7 +832,7 @@ apr_status_t ap_proxy_http_request(apr_pool_t *p, request_rec *r, } ap_proxy_clear_connection(p, r->headers_in); - if ( apr_table_get(r->subprocess_env,"force-proxy-request-1.0")) { + if (apr_table_get(r->subprocess_env, "force-proxy-request-1.0")) { buf = apr_pstrcat(p, r->method, " ", url, " HTTP/1.0" CRLF, NULL); force10 = 1; p_conn->close++; @@ -839,17 +840,17 @@ apr_status_t ap_proxy_http_request(apr_pool_t *p, request_rec *r, buf = apr_pstrcat(p, r->method, " ", url, " HTTP/1.1" CRLF, NULL); force10 = 0; } - if ( apr_table_get(r->subprocess_env,"proxy-nokeepalive")) { + if (apr_table_get(r->subprocess_env, "proxy-nokeepalive")) { origin->keepalive = AP_CONN_CLOSE; p_conn->close++; } ap_xlate_proto_to_ascii(buf, strlen(buf)); e = apr_bucket_pool_create(buf, strlen(buf), p, c->bucket_alloc); - APR_BRIGADE_INSERT_TAIL(bb, e); - if ( conf->preserve_host == 0 ) { + APR_BRIGADE_INSERT_TAIL(header_brigade, e); + if (conf->preserve_host == 0) { if (uri->port_str && uri->port != DEFAULT_HTTP_PORT) { - buf = apr_pstrcat(p, "Host: ", uri->hostname, ":", uri->port_str, CRLF, - NULL); + buf = apr_pstrcat(p, "Host: ", uri->hostname, ":", uri->port_str, + CRLF, NULL); } else { buf = apr_pstrcat(p, "Host: ", uri->hostname, CRLF, NULL); } @@ -872,7 +873,7 @@ apr_status_t ap_proxy_http_request(apr_pool_t *p, request_rec *r, } ap_xlate_proto_to_ascii(buf, strlen(buf)); e = apr_bucket_pool_create(buf, strlen(buf), p, c->bucket_alloc); - APR_BRIGADE_INSERT_TAIL(bb, e); + APR_BRIGADE_INSERT_TAIL(header_brigade, e); /* handle Via */ if (conf->viaopt == via_block) { @@ -1000,7 +1001,7 @@ apr_status_t ap_proxy_http_request(apr_pool_t *p, request_rec *r, NULL); ap_xlate_proto_to_ascii(buf, strlen(buf)); e = apr_bucket_pool_create(buf, strlen(buf), p, c->bucket_alloc); - APR_BRIGADE_INSERT_TAIL(bb, e); + APR_BRIGADE_INSERT_TAIL(header_brigade, e); } /* We have headers, let's figure out our request body... */ @@ -1174,27 +1175,28 @@ skip_body: buf = apr_pstrdup(p, "Connection: close" CRLF); ap_xlate_proto_to_ascii(buf, strlen(buf)); e = apr_bucket_pool_create(buf, strlen(buf), p, c->bucket_alloc); - APR_BRIGADE_INSERT_TAIL(bb, e); + APR_BRIGADE_INSERT_TAIL(header_brigade, e); } /* send the request body, if any. */ switch(rb_method) { case RB_STREAM_CHUNKED: - status = stream_reqbody_chunked(p, r, p_conn, origin, bb, + status = stream_reqbody_chunked(p, r, p_conn, origin, header_brigade, input_brigade); break; case RB_STREAM_CL: - status = stream_reqbody_cl(p, r, p_conn, origin, bb, + status = stream_reqbody_cl(p, r, p_conn, origin, header_brigade, input_brigade, old_cl_val); break; case RB_SPOOL_CL: - status = spool_reqbody_cl(p, r, p_conn, origin, bb, + status = spool_reqbody_cl(p, r, p_conn, origin, header_brigade, input_brigade, (old_cl_val != NULL) || (old_te_val != NULL) || (bytes_read > 0)); break; default: ap_assert(1 != 1); + break; } if (status != APR_SUCCESS) { |