Roxen.git/
server/
protocols/
http.pike
Branch:
Tag:
Non-build tags
All tags
No tags
1999-10-25
1999-10-25 18:02:18 by Henrik Grubbström (Grubba) <grubba@grubba.org>
94a5b93b49a95fb9bdec55150fff469d910f3dd9 (
29
lines) (+
18
/-
11
)
[
Show
|
Annotate
]
Branch:
5.2
Should now survive without the host header.
Rev: server/protocols/http.pike:1.166
1:
// This is a roxen module. // Modified by Francesco Chemolli to add throttling capabilities. // Copyright © 1996 - 1998, Idonex AB.
-
// $Id: http.pike,v 1.
165
1999/10/
12
13
:
19
:18
per
Exp $
+
// $Id: http.pike,v 1.
166
1999/10/
25
18
:
02
:18
grubba
Exp $
#define MAGIC_ERROR #ifdef MAGIC_ERROR inherit "highlight_pike"; #endif
-
constant cvs_version = "$Id: http.pike,v 1.
165
1999/10/
12
13
:
19
:18
per
Exp $";
+
constant cvs_version = "$Id: http.pike,v 1.
166
1999/10/
25
18
:
02
:18
grubba
Exp $";
// HTTP protocol module. #include <config.h> private inherit "roxenlib";
1577:
return; }
+
if (misc->host) {
// FIXME: port_obj->name & port_obj->default_port are constant // consider caching them? conf =
1586:
(":"+port_obj->default_port):"") + not_query, this_object());
+
} else {
+
// No host header.
+
// Fallback to using the first configuration bound to this port.
+
conf = port_obj->urls[port_obj->sorted_urls[0]]->conf;
+
}
if (rawauth) {