aboutsummaryrefslogtreecommitdiff
path: root/dpi/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'dpi/file.c')
-rw-r--r--dpi/file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dpi/file.c b/dpi/file.c
index d805d731..883ba073 100644
--- a/dpi/file.c
+++ b/dpi/file.c
@@ -483,6 +483,8 @@ static const char *File_ext(const char *filename)
!dStrcasecmp(e, "htm") ||
!dStrcasecmp(e, "shtml")) {
return "text/html";
+ } else if (!dStrcasecmp(e, "txt")) {
+ return "text/plain";
} else {
return NULL;
}