Roxen.git/
server/
base_server/
prototypes.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2004-05-05
2004-05-05 15:45:06 by Henrik Grubbström (Grubba) <grubba@grubba.org>
536c504fc9688d95dbe5e989acc3de37500d0dc1 (
9
lines) (+
8
/-
1
)
[
Show
|
Annotate
]
Branch:
5.2
Bugfix in get_if_data().
Rev: server/base_server/prototypes.pike:1.102
6:
#include <module.h> #include <variables.h> #include <module_constants.h>
-
constant cvs_version="$Id: prototypes.pike,v 1.
101
2004/05/05 15:
39
:
47
mast
Exp $";
+
constant cvs_version="$Id: prototypes.pike,v 1.
102
2004/05/05 15:
45
:
06
grubba
Exp $";
#ifdef DAV_DEBUG #define DAV_WERROR(X...) werror(X)
859:
case "word": // Resource resource = symbol[1];
+
// Normalize.
+
// FIXME: Check that the protocol and server parts refer
+
// to this server.
+
// FIXME: Support for servers mounted on subpaths.
+
catch { resource = Standards.URI(resource)->path; };
+
if (!sizeof(resource) || (resource[-1] != '/')) resource += "/";
if (!res[resource]) res[resource] = ({}); break;