Roxen.git/
server/
protocols/
http.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2001-05-09
2001-05-09 11:54:32 by Jonas Wallden <jonasw@roxen.com>
900d719e080ab15240d64fe0c1e064713f32e7e9 (
7
lines) (+
4
/-
3
)
[
Show
|
Annotate
]
Branch:
5.2
If charset header already exists, don't add a second one.
Rev: server/protocols/http.pike:1.313
2:
// Modified by Francesco Chemolli to add throttling capabilities. // Copyright © 1996 - 2000, Roxen IS.
-
constant cvs_version = "$Id: http.pike,v 1.
312
2001/05/
08
07
:
34
:
25
anders
Exp $";
+
constant cvs_version = "$Id: http.pike,v 1.
313
2001/05/
09
11
:
54
:
32
jonasw
Exp $";
// #define REQUEST_DEBUG #define MAGIC_ERROR
1625:
if (file["type"][0..4] == "text/") { [charset,file->data] = output_encode( file->data );
-
if( charset )
+
if( charset
&& (search(file["type"], "; charset="
)
== -1))
charset = "; charset="+charset; else charset = "";