Roxen.git/
server/
protocols/
http.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2009-06-04
2009-06-04 09:09:20 by Henrik Grubbström (Grubba) <grubba@grubba.org>
7608442c3eaec2e82475204ca970e3bc3b48a0e6 (
5
lines) (+
3
/-
2
)
[
Show
|
Annotate
]
Branch:
5.2
Fixed bug in got_chunk_fragment().
Rev: server/protocols/http.pike:1.607
2:
// Modified by Francesco Chemolli to add throttling capabilities. // Copyright © 1996 - 2009, Roxen IS.
-
constant cvs_version = "$Id: http.pike,v 1.
606
2009/06/
03
16
:
41
:
15
grubba Exp $";
+
constant cvs_version = "$Id: http.pike,v 1.
607
2009/06/
04
09
:
09
:
20
grubba Exp $";
// #define REQUEST_DEBUG #define MAGIC_ERROR
708:
while(misc->chunked == 1) { int chunk_data_offset; string chunk_extras;
-
int n = sscanf(buf, "%" +
(
chunk_offset
|| "")
+ "*s%x%s\r\n%n",
+
int n = sscanf(buf, "%" + chunk_offset + "*s%x%s\r\n%n",
misc->chunk_len, chunk_extras, chunk_data_offset); if (n < 4) {