From 682c2a2ce5943d3d7788116258c42bdd1a7e8735 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20B=C3=BCchel?= Date: Mon, 3 Aug 2020 11:51:21 +0200 Subject: [PATCH] SEBWIN-405: Fixed issue with server disconnection. --- SafeExamBrowser.Server/ServerProxy.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SafeExamBrowser.Server/ServerProxy.cs b/SafeExamBrowser.Server/ServerProxy.cs index af4a1b9f..3ee59b5d 100644 --- a/SafeExamBrowser.Server/ServerProxy.cs +++ b/SafeExamBrowser.Server/ServerProxy.cs @@ -97,10 +97,11 @@ namespace SafeExamBrowser.Server public ServerResponse Disconnect() { var authorization = ("Authorization", $"Bearer {oauth2Token}"); + var content = "delete=true"; var contentType = "application/x-www-form-urlencoded"; 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); if (success)