gessnerfl / fake-smtp-server

A simple SMTP Server for Testing purposes. Emails are stored in an in-memory database and rendered in a Web UI
Apache License 2.0
426 stars 88 forks source link

Content-type type/subtype should be case insensitive #51

Closed FejfarKamil closed 2 years ago

FejfarKamil commented 2 years ago

According to https://datatracker.ietf.org/doc/html/rfc1341, Content-type: type/subtype, type and subtype should be case insensitive, so https://github.com/gessnerfl/fake-smtp-server/blob/master/src/main/java/de/gessnerfl/fakesmtp/model/ContentType.java does not work for e.g. text/PLAIN.

gessnerfl commented 2 years ago

@FejfarKamil makes sense. Thanks for your contribution