From: Martin Kraemer Date: Mon, 12 Jan 2004 13:06:39 +0000 (+0000) Subject: Cosmetic change (I dislike 'known-constant-minus-one' literal numbers): X-Git-Tag: pre_ajp_proxy~822 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3b97e32bf775a47b3d3d1391a83b0038c0c41038;p=apache Cosmetic change (I dislike 'known-constant-minus-one' literal numbers): The ap_is_HTTP_INFO() macro checks for values in the 100...199 range, and is a better readable replacement for the value 199. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102282 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/proxy_http.c b/modules/proxy/proxy_http.c index 0dbcd11de5..5b9154c372 100644 --- a/modules/proxy/proxy_http.c +++ b/modules/proxy/proxy_http.c @@ -999,7 +999,7 @@ apr_status_t ap_proxy_http_process_response(apr_pool_t * p, request_rec *r, /* send body - but only if a body is expected */ if ((!r->header_only) && /* not HEAD request */ - (r->status > 199) && /* not any 1xx response */ + (!ap_is_HTTP_INFO(r->status)) && /* not any 1xx response */ (r->status != HTTP_NO_CONTENT) && /* not 204 */ (r->status != HTTP_RESET_CONTENT) && /* not 205 */ (r->status != HTTP_NOT_MODIFIED)) { /* not 304 */