SEBWIN-405: Fixed issue with server disconnection.

This commit is contained in:
Damian Büchel 2020-08-03 11:51:21 +02:00
parent 43bdfbb411
commit 682c2a2ce5

View file

@ -97,10 +97,11 @@ namespace SafeExamBrowser.Server
public ServerResponse Disconnect() public ServerResponse Disconnect()
{ {
var authorization = ("Authorization", $"Bearer {oauth2Token}"); var authorization = ("Authorization", $"Bearer {oauth2Token}");
var content = "delete=true";
var contentType = "application/x-www-form-urlencoded"; var contentType = "application/x-www-form-urlencoded";
var token = ("SEBConnectionToken", connectionToken); var token = ("SEBConnectionToken", connectionToken);
var success = TryExecute(HttpMethod.Delete, api.HandshakeEndpoint, out var response, default(string), contentType, authorization, token); var success = TryExecute(HttpMethod.Delete, api.HandshakeEndpoint, out var response, content, contentType, authorization, token);
var message = ToString(response); var message = ToString(response);
if (success) if (success)