SEBWIN-608: Forgot to define two header values.

This commit is contained in:
Damian Büchel 2023-02-24 21:39:39 +01:00
parent da458bcfb0
commit 6c31ce0833
2 changed files with 4 additions and 2 deletions

View file

@ -17,6 +17,7 @@ using Newtonsoft.Json.Linq;
using SafeExamBrowser.Logging.Contracts; using SafeExamBrowser.Logging.Contracts;
using SafeExamBrowser.Server.Contracts.Data; using SafeExamBrowser.Server.Contracts.Data;
using SafeExamBrowser.Server.Data; using SafeExamBrowser.Server.Data;
using SafeExamBrowser.Server.Requests;
namespace SafeExamBrowser.Server namespace SafeExamBrowser.Server
{ {
@ -111,7 +112,7 @@ namespace SafeExamBrowser.Server
try 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) if (hasHeader)
{ {
@ -132,7 +133,7 @@ namespace SafeExamBrowser.Server
try try
{ {
var hasHeader = response.Headers.TryGetValues("SEBConnectionToken", out var values); var hasHeader = response.Headers.TryGetValues(Header.CONNECTION_TOKEN, out var values);
if (hasHeader) if (hasHeader)
{ {

View file

@ -11,6 +11,7 @@ namespace SafeExamBrowser.Server.Requests
internal static class Header internal static class Header
{ {
internal const string ACCEPT = "Accept"; internal const string ACCEPT = "Accept";
internal const string APP_SIGNATURE_KEY_SALT = "SEBExamSalt";
internal const string AUTHORIZATION = "Authorization"; internal const string AUTHORIZATION = "Authorization";
internal const string CONNECTION_TOKEN = "SEBConnectionToken"; internal const string CONNECTION_TOKEN = "SEBConnectionToken";
} }