Branch: Tag:

2018-03-21

2018-03-21 16:10:36 by Henrik Grubbström (Grubba) <grubba@grubba.org>

MultiStatus.Prefixed: Added add_status(string, mapping).

Also added a use of it in recurse_delete_files().

Fixes missing lock-token-submitted when attempting to delete
locked files.

3693:    MultiStatus::add_status (href_prefix + path, status_code, message, @args);    }    +  //! Add a status for a path.    //! -  +  //! @note +  //! Note that the segments of the path will be +  //! encoded with @[Roxen.http_encode_url()]. +  variant void add_status (string path, mapping(string:mixed) ret) +  { +  path = map(path/"/", Roxen->http_encode_url)*"/"; +  MultiStatus::add_status (href_prefix + path, ret); +  } +  +  //!    void add_namespace (string namespace)    {    MultiStatus::add_namespace (namespace);