Roxen.git/
server/
protocols/
http.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2001-06-06
2001-06-06 22:11:00 by Per Hedbor <ph@opera.com>
32cf43f670c3a4bf2b54274c523a306370e58bf9 (
8
lines) (+
4
/-
4
)
[
Show
|
Annotate
]
Branch:
5.2
Fixed [Bug
1691 (#1691)
]
Rev: server/protocols/http.pike:1.315
2:
// Modified by Francesco Chemolli to add throttling capabilities. // Copyright © 1996 - 2000, Roxen IS.
-
constant cvs_version = "$Id: http.pike,v 1.
314
2001/
05
/
11
15
:
49
:
31
jonasw
Exp $";
+
constant cvs_version = "$Id: http.pike,v 1.
315
2001/
06
/
06
22
:
11
:
00
per
Exp $";
// #define REQUEST_DEBUG #define MAGIC_ERROR
1717:
prot, file->error, file->rettext ||errors[file->error]||"");
-
if( file->len > 0 || (file->error != 200) )
+
//
if( file->len > 0 || (file->error != 200) )
heads["Content-Length"] = (string)file->len; // Some browsers, e.g. Netscape 4.7, doesn't trust a zero // content length when using keep-alive. So let's force a // close in that case.
-
if( file->error/100 == 2
-
&& file->len <= 0 )
+
if( file->error/100 == 2 && file->len <= 0 )
{ heads->Connection = "close"; misc->connection = "close";