Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

[PATCH] proxy_http.c

From: <barbee(at)veribox.net>
Date: Wed Aug 15 2001 - 15:51:35 EDT


woah, mailer screwed up the patch formatting.

barbee.

Index: modules/proxy/proxy_http.c



RCS file: /home/cvspublic/httpd-proxy/module-2.0/proxy_http.c,v retrieving revision 1.88
diff -u -r1.88 proxy_http.c
--- modules/proxy/proxy_http.c 2001/08/14 18:04:58 1.88 +++ modules/proxy/proxy_http.c 2001/08/15 18:08:43
@@ -191,7 +191,7 @@
                                                 conn_rec *c,
                                                 proxy_server_conf
*conf,
                                                 apr_uri_components
*uri,
-                                                char *url,
+                                                char **url,
                                                 const char *proxyname,
apr_port_t proxyport,
                                                 char *server_portstr)
{
@@ -203,9 +203,9 @@

      */

     /* we break the URL into host, port, uri */ - if (APR_SUCCESS != apr_uri_parse_components(p, url, uri)) { + if (APR_SUCCESS != apr_uri_parse_components(p, *url, uri)) { return ap_proxyerror(r, HTTP_BAD_REQUEST,

-                             apr_pstrcat(p,"URI cannot be parsed:
", url,
+                             apr_pstrcat(p,"URI cannot be parsed:
", *url,
                                          NULL));
     }
     if (!uri->port) {

@@ -213,7 +213,7 @@
} ap_log_error(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, 0, r->server, - "proxy: HTTP connecting %s to %s:%d", url, uri->hostname, + "proxy: HTTP connecting %s to %s:%d", *url, uri->hostname,
uri->port);

     /* do a DNS lookup for the destination host */
@@ -235,10 +235,10 @@

         p_conn->name = apr_pstrdup(c->pool, uri->hostname);
         p_conn->port = uri->port;
         p_conn->addr = uri_addr;
-        url = apr_pstrcat(p, uri->path, uri->query ? "?" : "",
-                          uri->query ? uri->query : "",
-                          uri->fragment ? "#" : "",
-                          uri->fragment ? uri->fragment : "", NULL);
+        *url = apr_pstrcat(p, uri->path, uri->query ? "?" : "",

+                           uri->query ? uri->query : "",
+                           uri->fragment ? "#" : "",
+                           uri->fragment ? uri->fragment : "", NULL);
}

     if (err != APR_SUCCESS) {
@@ -915,8 +915,8 @@

     /* Step One: Determine Who To Connect To */ - status = ap_proxy_http_determine_connection(p, r, p_conn, c, conf, uri, url,

-                                                proxyname, proxyport,
+ status = ap_proxy_http_determine_connection(p, r, p_conn, c, conf, uri,
+                                                &url, proxyname,
proxyport,
                                                 server_portstr);
Do you need more help?X
if ( status != OK ) { return status;
Received on Wed Aug 15 18:14:03 2001
Do you need help?X

This archive was generated by hypermail 2.1.8 : Thu Aug 24 2006 - 14:53:30 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library