Skip to content

Commit

Permalink
Merge pull request #474 from cmu-sei/v8
Browse files Browse the repository at this point in the history
fixes #470 and #473
  • Loading branch information
sei-dupdyke authored Dec 6, 2024
2 parents bfae266 + 76b66e4 commit 7c922fd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Ghosts.Api/Controllers/Api/ClientIdController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ namespace ghosts.api.Controllers.Api
public class ClientIdController(IMachineService service) : Controller
{
private static readonly Logger _log = LogManager.GetCurrentClassLogger();
private readonly IMachineService _service = service;

private readonly IMachineService _service = service;

/// <summary>
/// Clients use this endpoint to get their unique GHOSTS system ID
/// </summary>
Expand All @@ -33,8 +33,7 @@ public async Task<IActionResult> Index(CancellationToken ct)
{
if (!Request.Headers.TryGetValue("ghosts-id", out var id))
{
_log.Warn("Request missing ghosts-id header");
return BadRequest("Missing ghosts-id header");
id = string.Empty;
}

_log.Info($"Request by {id}");
Expand Down

0 comments on commit 7c922fd

Please sign in to comment.