Add slot type in 403 message instead of fixed 'upload' string

This commit is contained in:
steckbrief 2016-08-22 17:03:59 +02:00
parent 1b4c02e5ca
commit 8510b8abab

View file

@ -67,7 +67,7 @@ switch ($method) {
// Check if xmppServerKey is allowed to request slots
if (false === checkXmppServerKey($config['valid_xmpp_server_keys'], $xmppServerKey)) {
sendHttpReturnCodeAndJson(403, 'Server is not allowed to request an upload slot');
sendHttpReturnCodeAndJson(403, 'Server is not allowed to request an '.$slotType.' slot');
}
switch ($slotType) {