You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by am...@apache.org on 2012/05/30 06:26:56 UTC

git commit: TS-1277 Another fix for remap issues.

Updated Branches:
  refs/heads/master a25258d81 -> 72eeb5e2c


TS-1277 Another fix for remap issues.


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/72eeb5e2
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/72eeb5e2
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/72eeb5e2

Branch: refs/heads/master
Commit: 72eeb5e2c959fafc283df27b082197a294f24181
Parents: a25258d
Author: Alan M. Carroll <am...@network-geographics.com>
Authored: Tue May 29 23:26:06 2012 -0500
Committer: Alan M. Carroll <am...@network-geographics.com>
Committed: Tue May 29 23:26:06 2012 -0500

----------------------------------------------------------------------
 proxy/hdrs/URL.cc |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/72eeb5e2/proxy/hdrs/URL.cc
----------------------------------------------------------------------
diff --git a/proxy/hdrs/URL.cc b/proxy/hdrs/URL.cc
index 454545a..af07543 100644
--- a/proxy/hdrs/URL.cc
+++ b/proxy/hdrs/URL.cc
@@ -1463,16 +1463,15 @@ url_parse_http_no_path_component_breakdown(HdrHeap * heap,
     host_end = cur;
     ++cur;
   } else {
-    host_end = end;
+    host_end = cur = end;
   }
   if (base != host_end)
     url_host_set(heap, url, base, host_end - base, copy_strings);
-  cur = host_end;
 
   // path is anything that's left.
   if (cur < end)
     url_path_set(heap, url, cur, end - cur, copy_strings);
-  *start = end;
+  *start = cur;
   return PARSE_DONE;
 }