lib/postmark.rb in challengepost-postmark-0.7.2 vs lib/postmark.rb in challengepost-postmark-0.7.3

- old
+ new

@@ -110,10 +110,10 @@ end if message.multipart? options["HtmlBody"] = message.html_part.body.to_s options["TextBody"] = message.text_part.body.to_s - elsif message.content_type == "text/html" + elsif message.content_type && message.content_type.match(/^text\/html/) options["HtmlBody"] = message.body.to_s else options["TextBody"] = message.body.to_s end options