]> granicus.if.org Git - apache/commitdiff
Cosmetic change (I dislike 'known-constant-minus-one' literal numbers):
authorMartin Kraemer <martin@apache.org>
Mon, 12 Jan 2004 13:06:39 +0000 (13:06 +0000)
committerMartin Kraemer <martin@apache.org>
Mon, 12 Jan 2004 13:06:39 +0000 (13:06 +0000)
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

modules/proxy/proxy_http.c

index 0dbcd11de540c8b0ab51471ef85e4c78f5c2bd26..5b9154c37218e44bb45c197ca07d434bd5514da5 100644 (file)
@@ -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 */