From 913bffe914c2ae9fd721fbd2f425a54d34bd00ca Mon Sep 17 00:00:00 2001 From: JungJun Date: Wed, 24 Aug 2022 13:16:02 +0900 Subject: [PATCH] =?UTF-8?q?init=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- icshttp/handler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/icshttp/handler.go b/icshttp/handler.go index b37af73..bb2124e 100644 --- a/icshttp/handler.go +++ b/icshttp/handler.go @@ -181,7 +181,7 @@ func (s *ScenarioSession) BOTPFunc(w http.ResponseWriter, r *http.Request) { if conf.ExceptTest.TestInfo.Value { // eType := conf.ExceptTest.TestInfo.Type - if request.Method != "INIT" { + if request.Method == "INIT" { response.ResultCode = conf.ExceptTest.TestInfo.ResultCode response.Token = conf.ExceptTest.TestInfo.Token response.Action = conf.ExceptTest.TestInfo.Action @@ -198,7 +198,7 @@ func (s *ScenarioSession) BOTPFunc(w http.ResponseWriter, r *http.Request) { response.Data.BargeIn = "" response.Data.RecodingFile = "" response.Data.SttMaxTime = 10 - } else if request.TalkText == "" { + } else if request.Method != "INIT" && request.TalkText == "" { response.ResultCode = 200 response.Token = request.Token if s.session[request.Token].NotUnderstand == 3 {