Allow POST /uri?t=mkdir to accept private-key

This commit is contained in:
Christopher R. Wood 2024-05-04 09:34:43 -04:00
parent 9c2362853d
commit b93a39fdc2

View File

@ -160,7 +160,7 @@ def POSTUnlinkedCreateDirectory(req, client):
mt = None mt = None
if file_format: if file_format:
mt = get_mutable_type(file_format) mt = get_mutable_type(file_format)
d = client.create_dirnode(version=mt) d = client.create_dirnode(version=mt, unique_keypair=get_keypair(req))
redirect = get_arg(req, "redirect_to_result", "false") redirect = get_arg(req, "redirect_to_result", "false")
if boolean_of_arg(redirect): if boolean_of_arg(redirect):
def _then_redir(res): def _then_redir(res):