From da1f7b97b5b4bd2bf7e8ef0c979dd3aaf9fb7b7b Mon Sep 17 00:00:00 2001
From: Yoshida Hiroshi <yoshida@shiguredo.jp>
Date: Thu, 11 Jan 2024 11:29:19 +0900
Subject: [PATCH] =?UTF-8?q?=E3=82=B3=E3=83=A1=E3=83=B3=E3=83=88=E3=82=92?=
 =?UTF-8?q?=E8=BF=BD=E5=8A=A0=E3=81=99=E3=82=8B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 handler.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/handler.go b/handler.go
index 3acf57a..1251641 100644
--- a/handler.go
+++ b/handler.go
@@ -93,6 +93,7 @@ func (s *Server) createSpeechHandler(serviceType string, onResultFunc func(conte
 			Msg("CONNECTED")
 
 		c.Response().Header().Set(echo.HeaderContentType, echo.MIMEApplicationJSON)
+		// すぐにヘッダを送信したい場合はここで c.Response().Flush() を実行する
 
 		ctx := c.Request().Context()
 		// TODO: context.WithCancelCause(ctx) に変更する