Commit 4df4e170 authored by Graham Leggett's avatar Graham Leggett
Browse files

Add #defines for protocol version checks...

PR:
Obtained from:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88765 13f79535-47bb-0310-9956-ffa450edef68
parent 2fed3f06
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -155,6 +155,11 @@ 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 '*' */
+1 −1
Original line number Diff line number Diff line
@@ -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 < 1001)) {
    if (close || (r->proto_num < HTTP_1_1)) {
        apr_socket_close(sock);
	conf->client_socket = NULL;
    }