trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject git commit: TS-1277 Another fix for remap issues. (cherry picked from commit 72eeb5e2c959fafc283df27b082197a294f24181)
Date Wed, 30 May 2012 04:47:34 GMT
Updated Branches:
  refs/heads/devrel/3.1.4 8d842ff52 -> f4e5b6671


TS-1277 Another fix for remap issues.
(cherry picked from commit 72eeb5e2c959fafc283df27b082197a294f24181)


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

Branch: refs/heads/devrel/3.1.4
Commit: f4e5b6671fb17fae972099a84259773da02cbd09
Parents: 8d842ff
Author: Alan M. Carroll <amc@network-geographics.com>
Authored: Tue May 29 23:47:19 2012 -0500
Committer: Alan M. Carroll <amc@network-geographics.com>
Committed: Tue May 29 23:47:19 2012 -0500

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


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/f4e5b667/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;
 }
 


Mime
View raw message