diff options
-rw-r--r-- | src/config/mimetypes.nim | 3 |
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 = |