Roxen.git/
server/
protocols/
http.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2000-12-10
2000-12-10 02:41:57 by Per Hedbor <ph@opera.com>
64861245e79b819fff77a03dcf913b861582320c (
14
lines) (+
6
/-
8
)
[
Show
|
Annotate
]
Branch:
5.2
Simplified
Rev: server/protocols/http.pike:1.291
2:
// Modified by Francesco Chemolli to add throttling capabilities. // Copyright © 1996 - 2000, Roxen IS.
-
constant cvs_version = "$Id: http.pike,v 1.
290
2000/12/
04
22
:
32
:
48
nilsson
Exp $";
+
constant cvs_version = "$Id: http.pike,v 1.
291
2000/12/
10
02
:
41
:
57
per
Exp $";
// #define REQUEST_DEBUG #define MAGIC_ERROR
1756:
} } }
-
if(file->rettext || !errors[file->error])
+
head_string = sprintf("%s %d %s\r\n",
-
prot, file->error,
file->rettext ||
-
(errors[
file->
error]?
-
errors[file->error]
[4..] :
"")
)
;
-
else
-
head_string = sprintf("%s %s\r\n", prot, errors[file->error]);
+
prot, file->error,
+
file->
rettext
||
errors[file->error]
||
"");
+
if( file->len > 0 || (file->error != 200) ) heads["Content-Length"] = (string)file->len;