Commit a6d74986 authored by David Lawrence's avatar David Lawrence

Bug 1152319: calling /rest/logout results in an internal error and a malformed…

Bug 1152319: calling /rest/logout results in an internal error and a malformed response to the caller r=glob,a=glob
parent 647b7158
......@@ -89,6 +89,16 @@ sub handle {
# Execute the handler
my $result = $self->_handle;
# The result needs to be a valid JSON data structure
# and not a undefined or scalar value.
if (!ref $result
|| blessed($result)
|| ref $result ne 'HASH'
|| ref $result ne 'ARRAY')
{
$result = { result => $result };
}
$self->response($result);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment