fix memory crashing

This commit is contained in:
Дмитрий Шиманский
2023-11-06 21:58:03 +03:00
parent d31d65c59d
commit 256c3c10d4
3 changed files with 13 additions and 7 deletions

View File

@@ -1,14 +1,13 @@
@page
@model IndexModel
@using System.Net.Http;
@{
ViewData["Title"] = "YaFlay";
}
<h3 align="left" class="readme" >README.md</h3>
@{
HttpClient client = new();
string Github_readme = client.GetStringAsync("https://raw.githubusercontent.com/YaFlay/YaFlay/master/README.md").Result;
string Github_readme = Startup.client.GetStringAsync("https://raw.githubusercontent.com/YaFlay/YaFlay/master/README.md").Result;
<div class="text"> @Html.Raw(Github_readme) </div>
}