0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-26 18:38:52 +02:00

modules/key/server: Fix assertion from 7420bf1156. (Fixes #129)

This commit is contained in:
Jason Volk 2019-08-17 11:58:46 -07:00
parent 8b41b95067
commit 1ec8ab2d0d

View file

@ -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]