diff options
author | Anthony Wang | 2025-07-16 22:54:17 -0400 |
---|---|---|
committer | Anthony Wang | 2025-07-16 22:54:28 -0400 |
commit | 0a0d3079044c612b480b546e1ed3dfea3c58b033 (patch) | |
tree | fefce6c3c688d9398bfbe98a1b9eac4f10d695c9 | |
parent | b74a30dbcc6fb9abac80e42a18b230c6bbd50348 (diff) |
-rw-r--r-- | Main.lean | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -13,8 +13,9 @@ def handler (conn : Client) := do let filename := (← IO.rand 0 <| 2 ^ 32 - 1).toInt32.toBitVec.toHex IO.println s!"Writing to {filename}" IO.FS.writeFile filename dataStr - | none => return - | none => return + conn.send s!"View at https://leanet.unnamed.website/{filename}\n".toUTF8 + | none => conn.send "Invalid UTF-8\n".toUTF8 + | none => conn.send "You screwed up somehow probably\n".toUTF8 def main := do let server ← Server.mk |