Roxen.git/
server/
protocols/
http.pike
Branch:
Tag:
Non-build tags
All tags
No tags
1997-08-04
1997-08-04 12:53:27 by Henrik Grubbström (Grubba) <grubba@grubba.org>
48633b40d3abf13591f59dd9be1f0f534e67446c (
91
lines) (+
52
/-
39
)
[
Show
|
Annotate
]
Branch:
5.2
Minor changes
Rev: server/protocols/http.pike:1.34
1:
// This is a roxen module. (c) Informationsvävarna AB 1996.
-
string cvs_version = "$Id: http.pike,v 1.
33
1997/08/
03
22
:
51
:
55
grubba Exp $";
+
string cvs_version = "$Id: http.pike,v 1.
34
1997/08/
04
12
:
53
:
27
grubba Exp $";
// HTTP protocol module. #include <config.h> private inherit "roxenlib";
344:
if(strlen(contents)) {
-
switch (linename)
-
{
+
switch (linename) {
case "content-length": misc->len = (int)(contents-" ");
467:
/* Some of M$'s non-standard user-agent info */ case "ua-pixels": /* Screen resolution */ case "ua-color": /* Color scheme */
-
case "ua-os": /* OS-name */
+
case "ua-os":
/* OS-name */
case "ua-cpu": /* CPU-type */ /* None of the above are interresting or usefull */ /* IGNORED */
558:
since=contents; break;
+
case "negotiate":
+
misc["negotiate"]=contents;
+
break;
+
+
case "via":
+
misc["via"]=contents;
+
break;
+
+
case "cache-control":
+
misc["cache-control"]=contents;
+
break;
+
+
case "forwarded": misc["forwarded"]=contents; break;
1079:
conf->requests++; } #ifdef THREADS
-
handle(this_object()->handle_request);
+
roxen->
handle(this_object()->handle_request);
#else this_object()->handle_request(); #endif