Home
last modified time | relevance | path

Searched refs:fromPathLen (Results 1 – 1 of 1) sorted by relevance

/dports/www/trafficserver/trafficserver-9.1.1/proxy/http/remap/
H A DUrlRewrite.cc237 int fromPathLen = 0; in url_rewrite_remap_request() local
244 map_from->path_get(&fromPathLen); in url_rewrite_remap_request()
249 char newPath[(requestPathLen - fromPathLen) + toPathLen + 8]; in url_rewrite_remap_request()
260 …if (!fromPathLen && requestPathLen && newPathLen && toPathLen && *(newPath + newPathLen - 1) != '/… in url_rewrite_remap_request()
267 if (requestPathLen < fromPathLen) { in url_rewrite_remap_request()
269 fromPathLen++; in url_rewrite_remap_request()
272 if (toPath && requestPath[fromPathLen] == '/' && toPath[toPathLen - 1] == '/') { in url_rewrite_remap_request()
273 fromPathLen++; in url_rewrite_remap_request()
278 if ((requestPathLen - fromPathLen) > 0) { in url_rewrite_remap_request()
279 memcpy(newPath + newPathLen, requestPath + fromPathLen, requestPathLen - fromPathLen); in url_rewrite_remap_request()
[all …]