From d427082e3698e3d0dec4beeae1c4866d001b193e Mon Sep 17 00:00:00 2001 From: He Hang Date: Wed, 20 Mar 2024 21:48:56 +0800 Subject: [PATCH] Fix get index --- Server.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Server.cs b/Server.cs index 1579924..9efd067 100644 --- a/Server.cs +++ b/Server.cs @@ -71,7 +71,7 @@ public static async Task ClipboardIndex(HttpContext ctx) var indexPath = Path.GetFullPath(Path.Combine("..", "..", "Resources", "index.html")); await SendString(ctx, File.ReadAllText(indexPath), "text/html"); #else - await sendString(ctx, Properties.Resources.index, "text/html"); + await SendString(ctx, Properties.Resources.index, "text/html"); #endif return; } @@ -340,7 +340,7 @@ public static bool IsRealImage(string path) Console.WriteLine("\nIt is a real image"); return true; } - catch (Exception e) + catch (Exception) { Console.WriteLine("\nIt is a fate image"); return false;