summaryrefslogtreecommitdiff
path: root/www/gatling/files/patch-gatling.c
blob: 8952ed9e6495a93bd07a40b92a2744dedb05d02e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- gatling.c.orig	Wed Jul 28 15:23:51 2004
+++ gatling.c	Mon Jan 31 18:42:03 2005
@@ -1261,6 +1261,7 @@ e404:
 		++c;
 		if ((i=scan_ulonglong(c,&range_last))) {
 		  if (!i) goto rangeerror;
+		  ++range_last;
 		}
 	      }
 	    } else {
@@ -1311,7 +1312,7 @@ rangeerror:
 	  c+=fmt_str(c,"\r\nContent-Range: bytes ");
 	  c+=fmt_ulonglong(c,range_first);
 	  c+=fmt_str(c,"-");
-	  c+=fmt_ulonglong(c,range_last);
+	  c+=fmt_ulonglong(c,range_last-1);
 	  c+=fmt_str(c,"/");
 	  c+=fmt_ulonglong(c,ss.st_size);
 	}