Ticket #1600: lighttpd-1.5-fix-request-uri-rewrite.patch
| File lighttpd-1.5-fix-request-uri-rewrite.patch, 0.9 kB (added by hoffie, 3 months ago) |
|---|
-
src/mod_proxy_core.c
old new 1291 1291 #endif 1292 1292 } 1293 1293 1294 /* populate sess->request_uri with the actually requested path 1295 * (con->request.uri). if we have pcre and there is a _uri request 1296 * rewrite, it will be overwritten later 1297 */ 1298 buffer_copy_string_buffer(sess->request_uri, con->request.uri); 1299 1294 1300 /* check if we want to rewrite the uri */ 1295 1301 #ifdef HAVE_PCRE_H 1296 1302 for (i = 0; i < p->conf.request_rewrites->used; i++) { … … 1367 1373 1368 1374 } 1369 1375 } 1370 1371 if (i == p->conf.request_rewrites->used) {1372 buffer_copy_string_buffer(sess->request_uri, con->request.uri);1373 }1374 #else1375 buffer_copy_string_buffer(sess->request_uri, con->request.uri);1376 1376 #endif 1377 1377 1378 1378 proxy_encode_request_headers(srv, sess, con->recv);

