From 6c31ce08332b2498e3753420e0a0ea1f303a8f66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20B=C3=BCchel?= Date: Fri, 24 Feb 2023 21:39:39 +0100 Subject: [PATCH] SEBWIN-608: Forgot to define two header values. --- SafeExamBrowser.Server/Parser.cs | 5 +++-- SafeExamBrowser.Server/Requests/Header.cs | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/SafeExamBrowser.Server/Parser.cs b/SafeExamBrowser.Server/Parser.cs index c2575c62..3ed53020 100644 --- a/SafeExamBrowser.Server/Parser.cs +++ b/SafeExamBrowser.Server/Parser.cs @@ -17,6 +17,7 @@ using Newtonsoft.Json.Linq; using SafeExamBrowser.Logging.Contracts; using SafeExamBrowser.Server.Contracts.Data; using SafeExamBrowser.Server.Data; +using SafeExamBrowser.Server.Requests; namespace SafeExamBrowser.Server { @@ -111,7 +112,7 @@ namespace SafeExamBrowser.Server try { - var hasHeader = response.Headers.TryGetValues("SEBExamSalt", out var values); + var hasHeader = response.Headers.TryGetValues(Header.APP_SIGNATURE_KEY_SALT, out var values); if (hasHeader) { @@ -132,7 +133,7 @@ namespace SafeExamBrowser.Server try { - var hasHeader = response.Headers.TryGetValues("SEBConnectionToken", out var values); + var hasHeader = response.Headers.TryGetValues(Header.CONNECTION_TOKEN, out var values); if (hasHeader) { diff --git a/SafeExamBrowser.Server/Requests/Header.cs b/SafeExamBrowser.Server/Requests/Header.cs index 92af3945..8ff3828b 100644 --- a/SafeExamBrowser.Server/Requests/Header.cs +++ b/SafeExamBrowser.Server/Requests/Header.cs @@ -11,6 +11,7 @@ namespace SafeExamBrowser.Server.Requests internal static class Header { internal const string ACCEPT = "Accept"; + internal const string APP_SIGNATURE_KEY_SALT = "SEBExamSalt"; internal const string AUTHORIZATION = "Authorization"; internal const string CONNECTION_TOKEN = "SEBConnectionToken"; }