Roxen.git
/
server
/
base_server
/
module.pike
version
»
Context lines:
10
20
40
80
file
none
3
Roxen.git/server/base_server/module.pike:1:
// This file is part of Roxen WebServer. // Copyright © 1996 - 2001, Roxen IS.
-
// $Id: module.pike,v 1.
186
2004/05/
08
14
:
40
:
20
grubba Exp $
+
// $Id: module.pike,v 1.
187
2004/05/
09
17
:
54
:
21
grubba Exp $
#include <module_constants.h> #include <module.h> #include <request_trace.h> constant __pragma_save_parent__ = 1; inherit "basic_defvar"; mapping(string:array(int)) error_log=([]);
Roxen.git/server/base_server/module.pike:1235:
if (!st) { TRACE_LEAVE("Source not found."); return; /* FIXME: 404? */ } // FIXME: Check destination? if (st->isdir) { mapping res = copy_collection(source, destination, behavior[query_location()+destination] || behavior[0], result, id);
-
if (res && res->error != 204) {
+
if (res &&
(
res->error != 204)
&& (res->error != 201))
{
result->add_status(destination, res->error, res->rettext); if (res->error >= 300) { // RFC 2518 8.8.3 and 8.8.8 (error minimization). return; } } if (depth <= 0) return; } else { mapping res = copy_file(source, destination, behavior[query_location()+destination] ||