trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zw...@apache.org
Subject svn commit: r1100384 - /trafficserver/traffic/trunk/proxy/Transform.cc
Date Fri, 06 May 2011 21:23:28 GMT
Author: zwoop
Date: Fri May  6 21:23:28 2011
New Revision: 1100384

URL: http://svn.apache.org/viewvc?rev=1100384&view=rev
Log:
TS-762 Range values like -10 are processed wrong
Author: William Bardwell
Review: leif

Modified:
    trafficserver/traffic/trunk/proxy/Transform.cc

Modified: trafficserver/traffic/trunk/proxy/Transform.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/proxy/Transform.cc?rev=1100384&r1=1100383&r2=1100384&view=diff
==============================================================================
--- trafficserver/traffic/trunk/proxy/Transform.cc (original)
+++ trafficserver/traffic/trunk/proxy/Transform.cc Fri May  6 21:23:28 2011
@@ -851,7 +851,7 @@ RangeTransform::parse_range_and_compare(
         s = value;
       }
       
-      m_ranges[i]._start = mime_parse_int64(s, e);
+      m_ranges[i]._start = ((s==e)?-1:mime_parse_int64(s, e));
 
       e++;
       s = e;



Mime
View raw message