Roxen.git/
server/
protocols/
http.pike
Branch:
Tag:
Non-build tags
All tags
No tags
1998-03-31
1998-03-31 20:00:40 by Henrik Grubbström (Grubba) <grubba@grubba.org>
dd23d7d0139e16c8b3a76b9ea1eb09914b697f36 (
10
lines) (+
8
/-
2
)
[
Show
|
Annotate
]
Branch:
5.2
Now checks accept-encoding for gzip.
Rev: server/protocols/http.pike:1.90
1:
// This is a roxen module. Copyright © 1996 - 1998, Idonex AB.
-
constant cvs_version = "$Id: http.pike,v 1.
89
1998/03/
29
01
:
17
:
45
neotron
Exp $";
+
constant cvs_version = "$Id: http.pike,v 1.
90
1998/03/
31
20
:
00
:
40
grubba
Exp $";
// HTTP protocol module. #include <config.h> private inherit "roxenlib";
451:
misc[linename] = lower_case(contents); break;
-
case "accept":
+
case "accept-encoding":
-
+
foreach((contents-" ")/",", string e) {
+
if (lower_case(e) == "gzip") {
+
supports["autogunzip"] = 1;
+
}
+
}
+
case "accept":
case "accept-charset": case "accept-language": case "session-id":