Roxen.git/
server/
protocols/
http.pike
Branch:
Tag:
Non-build tags
All tags
No tags
1998-04-03
1998-04-03 19:14:16 by Per Hedbor <ph@opera.com>
06d53375b6f0ebe4f416cd0d64b03fa781531e5d (
36
lines) (+
14
/-
22
)
[
Show
|
Annotate
]
Branch:
5.2
Changed indent level...
Rev: server/protocols/http.pike:1.92
1:
// This is a roxen module. Copyright © 1996 - 1998, Idonex AB.
-
constant cvs_version = "$Id: http.pike,v 1.
91
1998/04/
02
23
:
43
:
00
neotron
Exp $";
+
constant cvs_version = "$Id: http.pike,v 1.
92
1998/04/
03
19
:
14
:
16
per
Exp $";
// HTTP protocol module. #include <config.h> private inherit "roxenlib";
51:
int time = predef::time(1); string raw_url; int do_not_disconnect;
-
+
mapping (string:string) variables = ([ ]);
-
mapping (string:mixed) misc = ([ ]);
+
mapping (string:mixed)
misc = ([ ]);
mapping (string:string) cookies = ([ ]);
-
multiset
(string) prestate
= (< >);
-
multiset
(string) config
= (< >);
-
multiset
(string) supports
= (< >);
+
multiset (string) prestate = (< >);
+
multiset (string) config = (< >);
+
multiset (string) supports = (< >);
multiset (string) pragma = (< >); string remoteaddr, host;
237:
int end = search(reverse(line[start+1..]), " "); if (end != -1) { f = line[start+1..sizeof(line)-(end+2)];
-
clientprot = line[sizeof(line)-end..];
-
if (clientprot != "HTTP/0.9") {
-
prot = "HTTP/1.0";
+
prot =
clientprot = line[sizeof(line)-end..];
// Check that the request is complete int end;
250:
data = s[end+4..]; s = s[sizeof(line)+2..end-1]; } else {
-
prot = clientprot;
-
data = s[sizeof(line)+2..];
-
s = ""; // No headers.
-
}
-
} else {
+
f = line[start+1..]; prot = clientprot = "HTTP/0.9"; data = s[sizeof(line)+2..];
1180:
// { // call_out(real_chain,0,fd,conf,leftovers); // }
-
+