@@ -1045,11 +1045,6 @@ static int proxy_handler(request_rec *r)
1045
1045
}
1046
1046
1047
1047
scheme = apr_pstrndup (r -> pool , uri , p - uri );
1048
-
1049
- if (strcmp (scheme , "auto" ) == 0 ) {
1050
- apr_table_set (r -> notes , "auto" , uri );
1051
- uri = apr_pstrcat (r -> pool , ap_http_scheme (r ), p , NULL );
1052
- }
1053
1048
/* Check URI's destination host against NoProxy hosts */
1054
1049
/* Bypass ProxyRemote server lookup if configured as NoProxy */
1055
1050
for (direct_connect = i = 0 ; i < conf -> dirconn -> nelts &&
@@ -1156,8 +1151,8 @@ static int proxy_handler(request_rec *r)
1156
1151
1157
1152
/* handle the scheme */
1158
1153
ap_log_rerror (APLOG_MARK , APLOG_DEBUG , 0 , r , APLOGNO (01143 )
1159
- "Running scheme %s handler for %s (attempt %d)" ,
1160
- scheme , url , attempts );
1154
+ "Running scheme %s handler (attempt %d)" ,
1155
+ scheme , attempts );
1161
1156
AP_PROXY_RUN (r , worker , conf , url , attempts );
1162
1157
access_status = proxy_run_scheme_handler (r , worker , conf ,
1163
1158
url , NULL , 0 );
@@ -1484,15 +1479,15 @@ static const char *
1484
1479
1485
1480
static char * de_socketfy (apr_pool_t * p , char * url )
1486
1481
{
1487
- char * ptr , * ret = url ;
1482
+ char * ptr ;
1488
1483
/*
1489
1484
* We could be passed a URL during the config stage that contains
1490
1485
* the UDS path... ignore it
1491
1486
*/
1492
1487
if (!strncasecmp (url , "unix:" , 5 ) &&
1493
1488
((ptr = ap_strchr (url , '|' )) != NULL )) {
1494
1489
/* move past the 'unix:...|' UDS path info */
1495
- char * c ;
1490
+ char * ret , * c ;
1496
1491
1497
1492
ret = ptr + 1 ;
1498
1493
/* special case: "unix:....|scheme:" is OK, expand
@@ -1503,10 +1498,13 @@ static char *de_socketfy(apr_pool_t *p, char *url)
1503
1498
return NULL ;
1504
1499
}
1505
1500
if (c [1 ] == '\0' ) {
1506
- ret = apr_pstrcat (p , ret , "//localhost" , NULL );
1501
+ return apr_pstrcat (p , ret , "//localhost" , NULL );
1502
+ }
1503
+ else {
1504
+ return ret ;
1507
1505
}
1508
1506
}
1509
- return ret ;
1507
+ return url ;
1510
1508
}
1511
1509
1512
1510
static const char *
0 commit comments