kindが見つからない場合に複数のレスポンスが買える問題を解決

This commit is contained in:
studiokaiji
2023-10-23 08:05:23 +09:00
parent 240d5ded39
commit bb283c72ce

View File

@@ -77,8 +77,9 @@ func Start(port string, mode string) {
contentType, err := tools.GetContentType(ev.Kind)
if err != nil {
ctx.String(http.StatusNotFound, http.StatusText(http.StatusNotFound))
}
} else {
ctx.Data(http.StatusOK, contentType, []byte(ev.Content))
}
} else {
ctx.String(http.StatusNotFound, http.StatusText(http.StatusNotFound))
}