about summary refs log tree commit diff stats
path: root/src/config/mimetypes.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/config/mimetypes.nim')
-rw-r--r--src/config/mimetypes.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/config/mimetypes.nim b/src/config/mimetypes.nim
index 2b0900d5..2c2bcc50 100644
--- a/src/config/mimetypes.nim
+++ b/src/config/mimetypes.nim
@@ -29,7 +29,8 @@ proc parseMimeTypes*(mimeTypes: var MimeTypes, stream: Stream) =
         ext &= line[i].tolower()
         inc i
       if ext == "": continue
-      mimeTypes[ext] = t
+      if ext notin mimeTypes:
+        mimeTypes[ext] = t
   stream.close()
 
 proc parseMimeTypes*(stream: Stream): MimeTypes =