mirror of
https://github.com/matrix-construct/construct
synced 2024-12-27 07:54:05 +01:00
modules/key/server: Fix assertion from 7420bf1156
. (Fixes #129)
This commit is contained in:
parent
8b41b95067
commit
1ec8ab2d0d
1 changed files with 3 additions and 1 deletions
|
@ -33,7 +33,9 @@ handle_get(client &client,
|
|||
char key_id_buf[256];
|
||||
const auto key_id
|
||||
{
|
||||
url::decode(key_id_buf, request.parv[0])
|
||||
request.parv.size() > 0?
|
||||
url::decode(key_id_buf, request.parv[0]):
|
||||
string_view{}
|
||||
};
|
||||
|
||||
m::keys::get(my_host(), key_id, [&client]
|
||||
|
|
Loading…
Reference in a new issue