From 1227c3aa421130e0180bb2d1f110824fc2ef7609 Mon Sep 17 00:00:00 2001 From: "valeski%netscape.com" Date: Fri, 1 Oct 1999 20:25:38 +0000 Subject: [PATCH] 15296 r=gagan. Added .txt extension to the MIME type extension resolver. --- netwerk/mime/src/nsMIMEService.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/netwerk/mime/src/nsMIMEService.cpp b/netwerk/mime/src/nsMIMEService.cpp index eb79e404d13..35c02cf080b 100644 --- a/netwerk/mime/src/nsMIMEService.cpp +++ b/netwerk/mime/src/nsMIMEService.cpp @@ -106,6 +106,10 @@ nsresult nsMIMEService::InitFromHack() { nsresult rv; + rv = AddMapping("text/plain", "txt", "Text File"); + if (NS_FAILED(rv)) return rv; + rv = AddMapping("text/plain", "text", "Text File"); + if (NS_FAILED(rv)) return rv; rv = AddMapping("application/octet-stream", "exe", "Binary Executable"); if (NS_FAILED(rv)) return rv; rv = AddMapping("application/octet-stream", "bin", "Binary Executable");