summaryrefslogtreecommitdiff
path: root/lib/mime/type.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mime/type.rb')
-rw-r--r--lib/mime/type.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mime/type.rb b/lib/mime/type.rb
index d40b9b1..f0ec15e 100644
--- a/lib/mime/type.rb
+++ b/lib/mime/type.rb
@@ -364,7 +364,7 @@ class MIME::Type
# Returns the default encoding for the MIME::Type based on the media type.
def default_encoding
- @media_type == "text" ? "quoted-printable" : "base64"
+ (@media_type == "text") ? "quoted-printable" : "base64"
end
##