• R/O
  • SSH

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Gemini server written in Crystal


Commit MetaInfo

Révisionf8ed96c7941d71d04966da682f63ea2d3dcc574e (tree)
l'heure2023-11-19 08:01:35
AuteurRemilia Scarlet <alexa@part...>
CommiterRemilia Scarlet

Message de Log

Properly include the footer

Change Summary

Modification

diff -r 4a3a0fcbcf1d -r f8ed96c7941d src/server.cr
--- a/src/server.cr Thu Oct 26 18:21:38 2023 -0600
+++ b/src/server.cr Sat Nov 18 16:01:35 2023 -0700
@@ -50,9 +50,7 @@
5050 end
5151
5252 if mtype == GEMINI_MIME_TYPE
53- if (foot = !Aya.config.footer)
54- sock << '\n' << foot << '\n'
55- end
53+ Aya.config.footer.try { |str| sock << '\n' << str << '\n' }
5654 end
5755 end
5856
@@ -83,6 +81,7 @@
8381
8482 sock << "20 #{GEMINI_MIME_TYPE}\r\n"
8583 sock << gemtext
84+ Aya.config.footer.try { |str| sock << '\n' << str << '\n' }
8685 return
8786 end
8887