aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/base/routes.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/base/routes.go b/plugins/base/routes.go
index 85034de..c24d3bb 100644
--- a/plugins/base/routes.go
+++ b/plugins/base/routes.go
@@ -494,7 +494,7 @@ func handleReply(ctx *koushin.Context) error {
return fmt.Errorf("failed to parse part Content-Type: %v", err)
}
- if !strings.HasPrefix(strings.ToLower(mimeType), "text/") {
+ if !strings.EqualFold(mimeType, "text/plain") {
err := fmt.Errorf("cannot reply to %q part", mimeType)
return echo.NewHTTPError(http.StatusBadRequest, err)
}