diff --git a/DagoniteEmpire/Service/CharacterPostsController.cs b/DagoniteEmpire/Service/CharacterPostsController.cs index 9a7d4a7..44adf11 100644 --- a/DagoniteEmpire/Service/CharacterPostsController.cs +++ b/DagoniteEmpire/Service/CharacterPostsController.cs @@ -51,16 +51,15 @@ public async Task Get(int id) { return "null header"; } - //string aa = ""; - //foreach (var head in headers) - //{ - // aa += head.Value.ToString(); - //} - //return aa; + string aa = ""; + foreach (var head in headers) + { + aa += $"{head.Key}: {head.Value.ToString()} # "; + } + return aa; - _httpContextAccessor.HttpContext.Request.Headers.TryGetValue("date_from", out StringValues authString); + //_httpContextAccessor.HttpContext.Request.Headers.TryGetValue("date_from", out StringValues authString); - return authString; var dateFrom = headers["date_from"]; var dateTo = headers["date_to"]; int postCount = 0;