lib/rex/mime/message.rb in librex-0.0.65 vs lib/rex/mime/message.rb in librex-0.0.66

- old
+ new

@@ -1,5 +1,6 @@ +# -*- coding: binary -*- module Rex module MIME class Message require 'rex/mime/header' @@ -86,10 +87,12 @@ if (content_disposition) part.header.set("Content-Disposition", content_disposition) end - part.header.set("Content-Type", content_type) + if (content_type) + part.header.set("Content-Type", content_type) + end if (transfer_encoding) part.header.set("Content-Transfer-Encoding", transfer_encoding) end