SEBWIN-405: Fixed issue with server disconnection.
This commit is contained in:
parent
43bdfbb411
commit
682c2a2ce5
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue