Roxen.git / server / etc / test / modules / TEST.pmod / http.pmod / WebDAV.pmod / TestBase.pike

version» Context lines:

Roxen.git/server/etc/test/modules/TEST.pmod/http.pmod/WebDAV.pmod/TestBase.pike:102:    string path,    mapping(string:string)|void extra_headers,    string|void data)   {    mapping(string:string) headers = base_headers + ([]);       if (extra_headers) {    headers += extra_headers;    }    +  if (upper_case(method) == "HEAD") { +  // Workaround for bug in Protocols.HTTP.Query. +  headers["connection"] = "close"; +  } +     array(string) lock_paths = ({ path });       // Convert the fake header "new-uri" into a proper "destination" header.    string new_uri = m_delete(headers, "new-uri");    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 });