add txt mimetype

This commit is contained in:
Jan Lehnardt 2008-12-14 13:14:31 +01:00
parent 7461e3fede
commit 5f65f9d8ab

View file

@ -12,7 +12,8 @@ module CouchRest
"png" => "image/png", "png" => "image/png",
"gif" => "image/gif", "gif" => "image/gif",
"css" => "text/css", "css" => "text/css",
"js" => "test/javascript" "js" => "test/javascript",
"txt" => "text/plain"
} }
def initialize(dbname, host="http://127.0.0.1:5984") def initialize(dbname, host="http://127.0.0.1:5984")
@db = CouchRest.new(host).database(dbname) @db = CouchRest.new(host).database(dbname)