Roxen.git / server / base_server / module.pike

version» Context lines:

Roxen.git/server/base_server/module.pike:1752:    tmp_id->not_query = query_location() + source;    tmp_id->misc["new-uri"] = query_location() + destination;    tmp_id->request_headers->destination =    id->url_base() + query_location()[1..] + destination;    tmp_id->method = "MOVE";    mapping(string:mixed) res = find_file(source, tmp_id);    if (!res || res->error != 501) {    if (res && !sizeof(res)) {    foreach(tmp_id->get_multi_status()->get_responses_by_prefix("");    string href; MultiStatusNode status) { -  id->add_status(href, status); +  id->set_status_for_url(href, status);    }    }    return res;    }    // Not implemented. Fall back to COPY + DELETE.    string prefix = map(query_location()[1..]/"/", Roxen.http_encode_url)*"/";    MultiStatus.Prefixed result =    id->get_multi_status()->prefix (id->url_base() + prefix);    res = copy_collection(source, destination, behavior, overwrite, result, id);    if (res && (res->error >= 300 || !sizeof(res))) {