aboutsummaryrefslogtreecommitdiffstats
path: root/src/body.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/body.cpp')
-rw-r--r--src/body.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/body.cpp b/src/body.cpp
index d68254c7..f1a8cc0f 100644
--- a/src/body.cpp
+++ b/src/body.cpp
@@ -494,7 +494,10 @@ void body::generateImpl
else
{
// Generate the contents
- m_contents->generate(os, getEncoding(), ctx.getMaxLineLength());
+ ref <contentHandler> contents = m_contents->clone();
+ contents->setContentTypeHint(getContentType());
+
+ contents->generate(os, getEncoding(), ctx.getMaxLineLength());
}
}