Roxen.git/
server/
base_server/
module.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2003-06-16
2003-06-16 15:35:11 by Henrik Grubbström (Grubba) <grubba@grubba.org>
425da69793d22a56d09499ebf0e5cc3221a434bb (
12
lines) (+
9
/-
3
)
[
Show
|
Annotate
]
Branch:
5.2
query_property() is now more RFC
2518
compliant.
Rev: server/base_server/module.pike:1.137
1:
// This file is part of Roxen WebServer. // Copyright © 1996 - 2001, Roxen IS.
-
// $Id: module.pike,v 1.
136
2003/06/
11
17
:
08
:
00
grubba Exp $
+
// $Id: module.pike,v 1.
137
2003/06/
16
15
:
35
:
11
grubba Exp $
#include <module_constants.h> #include <module.h>
328:
query_property(string path, string prop_name, RequestID id) { Stat st = stat_file(path, id);
-
if (!st) return
0;
// FIXME:
No such file.
+
if (!st) return
Roxen.http_low_answer(404,
"
No such file
or directory
.
");
switch(prop_name) { case "DAV:creationdate": // 13.1 return iso8601_date_time(st->ctime);
358:
default: break; }
-
return
0;
//
FIXME:
No such property.
+
//
RFC
2518
8.1:
+
//
A request to retrieve the value of a property which does not
+
//
exist is an error and MUST be noted, if the response uses a
+
// multistatus XML element, with a response XML element which
+
// contains a 404 (Not Found) status value.
+
return Roxen.http_low_answer(404, "
No such property.
");
} //! Attempt to set property @[prop_name] for @[path] to @[value].