Skip to content

Commit

Permalink
Fix get index
Browse files Browse the repository at this point in the history
  • Loading branch information
HeHang0 committed Mar 20, 2024
1 parent be1ed69 commit d427082
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Server.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit d427082

Please sign in to comment.