Roxen.git / server / etc / test / tests / http / RoxenTest_webdav.pike

version» Context lines:

Roxen.git/server/etc/test/tests/http/RoxenTest_webdav.pike:63:    if (new_uri) {    if (lower_case(method) == "copy") {    // NB: No need to lock the source for a copy operation.    lock_paths = ({ new_uri });    } else {    lock_paths += ({ new_uri });    }       if (has_prefix(new_uri, "/")) new_uri = new_uri[1..];    Standards.URI dest_uri = Standards.URI(new_uri, base_uri); -  // FIXME: +     headers["destination"] = (string)dest_uri;    }       multiset(string) locks = (<>);    if (current_locks) {    foreach(lock_paths, string dir) {    while(1) {    string lock = current_locks[dir];    if (lock) locks[lock] = 1;    if (dir == "/") break;
Roxen.git/server/etc/test/tests/http/RoxenTest_webdav.pike:86:    }    if (sizeof(locks)) {    headers->if = "(<" + (indices(locks) * ">), (<") + ">)";    }    }    if (has_prefix(path, "/")) path = path[1..];       Standards.URI url = Standards.URI(path, base_uri);    con = Protocols.HTTP.do_method(method, url, UNDEFINED, headers, con, data);    -  report_debug("Webdav: %s %O ==> code: %d\n", -  method, path, con?con->status:600); +  report_debug("Webdav: %s %O (url: %O) ==> code: %d\n", +  method, path, url, con?con->status:600);       if (!con) return ({ 600, ([]), "" });       return ({ con->status, con->headers, con->data() });   }      int webdav_put(string path, string data)   {    array(int|mapping(string:string)|string) res =    webdav_request("PUT", path, UNDEFINED, data);