diff --git a/conn/twilio/handler.go b/conn/twilio/handler.go index fd92d25..e520969 100644 --- a/conn/twilio/handler.go +++ b/conn/twilio/handler.go @@ -36,15 +36,10 @@ func handler(w http.ResponseWriter, r *http.Request) { return } - w.Write([]byte("accepted")) - response, err := cps.Handle(context.Background(), message.Body) if err != nil { log.Printf("twilio receive hook: %s", err) } - err = Send(message.Source, response.String()) - if err != nil { - log.Printf("twilio receive hook: %s", err) - } + w.Write([]byte(response.String())) }