Skip to content

Commit

Permalink
testfix: 9
Browse files Browse the repository at this point in the history
  • Loading branch information
KrystianKempski committed Dec 15, 2024
1 parent b0848f2 commit 0ebdb36
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions DagoniteEmpire/Service/CharacterPostsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,15 @@ public async Task<string> 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;
Expand Down

0 comments on commit 0ebdb36

Please sign in to comment.