mirror of
https://github.com/studiokaiji/nostr-webhost.git
synced 2025-12-17 14:54:31 +01:00
kindが見つからない場合に複数のレスポンスが買える問題を解決
This commit is contained in:
@@ -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))
|
||||
}
|
||||
ctx.Data(http.StatusOK, contentType, []byte(ev.Content))
|
||||
} else {
|
||||
ctx.String(http.StatusNotFound, http.StatusText(http.StatusNotFound))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user