Skip to content

Commit

Permalink
終了時のメッセージをストリームに送らないようにする
Browse files Browse the repository at this point in the history
  • Loading branch information
Hexa committed Jan 25, 2024
1 parent 41562cb commit 04abd75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ func (s *Server) createSpeechHandler(serviceType string, onResultFunc func(conte
Send()
if err, ok := err.(*SuzuError); ok {
// SuzuError の場合はその Status Code を返す
return echo.NewHTTPError(err.Code, err)
return c.NoContent(err.Code)
}

// SuzuError 以外の場合は 500 を返す
Expand Down

0 comments on commit 04abd75

Please sign in to comment.