@@ -127,13 +127,13 @@ func NewFromReader(r io.Reader) (*Email, error) {
127127
128128 contentType , _ , err = mime .ParseMediaType (p .header .Get ("Content-Type" ))
129129 if err != nil {
130- return msg , apperror .NewErrorf ("Could not parse Content-Type header with value %q" , p .header .Get ("Content-Type" )).AddError (err )
130+ return msg , apperror .NewErrorf ("could not parse Content-Type header with value %q" , p .header .Get ("Content-Type" )).AddError (err )
131131 }
132132
133133 if cd := p .header .Get ("Content-Disposition" ); cd != "" {
134134 cd , params , err := mime .ParseMediaType (p .header .Get ("Content-Disposition" ))
135135 if err != nil {
136- return msg , apperror .NewErrorf ("Could not parse Content-Disposition header with value %q" , p .header .Get ("Content-Disposition" )).AddError (err )
136+ return msg , apperror .NewErrorf ("could not parse Content-Disposition header with value %q" , p .header .Get ("Content-Disposition" )).AddError (err )
137137 }
138138 filename , filenameDefined := params ["filename" ]
139139 if cd == "attachment" || (cd == "inline" && filenameDefined ) {
@@ -728,7 +728,7 @@ func parseMIMEParts(hs textproto.MIMEHeader, b io.Reader) ([]*part, error) {
728728 }
729729 ct , params , err := mime .ParseMediaType (hs .Get ("Content-Type" ))
730730 if err != nil {
731- return ps , apperror .NewErrorf ("Could not parse Content-Type header with value %q" , hs .Get ("Content-Type" )).AddError (err )
731+ return ps , apperror .NewErrorf ("could not parse Content-Type header with value %q" , hs .Get ("Content-Type" )).AddError (err )
732732 }
733733 if strings .HasPrefix (ct , "multipart/" ) {
734734 if _ , ok := params ["boundary" ]; ! ok {
@@ -749,7 +749,7 @@ func parseMIMEParts(hs textproto.MIMEHeader, b io.Reader) ([]*part, error) {
749749 }
750750 subct , _ , err := mime .ParseMediaType (p .Header .Get ("Content-Type" ))
751751 if err != nil {
752- return ps , apperror .NewErrorf ("Could not parse Content-Type header with value %q" , p .Header .Get ("Content-Type" )).AddError (err )
752+ return ps , apperror .NewErrorf ("could not parse Content-Type header with value %q" , p .Header .Get ("Content-Type" )).AddError (err )
753753 }
754754 if strings .HasPrefix (subct , "multipart/" ) {
755755 sps , err := parseMIMEParts (p .Header , p )
0 commit comments