From: Graham Leggett Date: Sun, 8 Apr 2001 16:29:30 +0000 (+0000) Subject: HTTP_VERSION() is the correct way to do this... X-Git-Tag: 2.0.17~86 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a3f6f6dd0a93fb79994d839a437b871afef66422;p=apache HTTP_VERSION() is the correct way to do this... PR: Obtained from: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88769 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/mod_proxy.h b/modules/proxy/mod_proxy.h index fc56a20e0f..93d5bd8c1e 100644 --- a/modules/proxy/mod_proxy.h +++ b/modules/proxy/mod_proxy.h @@ -155,11 +155,6 @@ struct proxy_services { }; #endif -/* different HTTP versions we need to care about */ -#define HTTP_0_9 0009 -#define HTTP_1_0 1000 -#define HTTP_1_1 1001 - /* static information about a remote proxy */ struct proxy_remote { const char *scheme; /* the schemes handled by this proxy, or '*' */ diff --git a/modules/proxy/proxy_http.c b/modules/proxy/proxy_http.c index 1873f813c2..0afeb12d5e 100644 --- a/modules/proxy/proxy_http.c +++ b/modules/proxy/proxy_http.c @@ -738,7 +738,7 @@ int ap_proxy_http_handler(request_rec *r, char *url, /* if the connection is < HTTP/1.1, or Connection: close, * we close the socket, otherwise we leave it open for KeepAlive support */ - if (close || (r->proto_num < HTTP_1_1)) { + if (close || (r->proto_num < HTTP_VERSION(1,1))) { apr_socket_close(sock); conf->client_socket = NULL; }