Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 32551 invoked from network); 25 Jan 2009 21:48:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Jan 2009 21:48:36 -0000 Received: (qmail 77547 invoked by uid 500); 25 Jan 2009 21:48:34 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 77119 invoked by uid 500); 25 Jan 2009 21:48:33 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 77108 invoked by uid 99); 25 Jan 2009 21:48:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Jan 2009 13:48:33 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [80.68.94.123] (HELO tumbolia.org) (80.68.94.123) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Jan 2009 21:48:24 +0000 Received: from nslater by tumbolia.org with local (Exim 4.69) (envelope-from ) id 1LRCpm-0003RT-Qz for user@couchdb.apache.org; Sun, 25 Jan 2009 21:48:02 +0000 Date: Sun, 25 Jan 2009 21:48:02 +0000 From: Noah Slater To: user@couchdb.apache.org Subject: Re: Issue with null MIME type for attachments Message-ID: <20090125214802.GQ24162@tumbolia.org> Mail-Followup-To: user@couchdb.apache.org References: <20090125164143.GA19119@uk.tiscali.com> <20090125202548.GL24162@tumbolia.org> <20090125210622.GB26564@uk.tiscali.com> <20090125213844.GP24162@tumbolia.org> <20090125214527.GA28567@uk.tiscali.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090125214527.GA28567@uk.tiscali.com> X-Noah: Awesome User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Checked: Checked by ClamAV on apache.org On Sun, Jan 25, 2009 at 09:45:27PM +0000, Brian Candler wrote: > On Sun, Jan 25, 2009 at 09:38:45PM +0000, Noah Slater wrote: > > On Sun, Jan 25, 2009 at 09:06:22PM +0000, Brian Candler wrote: > > > For now though, couchapp could use the ruby MIME::Types gem in place of its > > > own hard-coded table. > > > > > > irb(main):008:0> MIME::Types.type_for('citydesk.xml').first.to_s > > > => "application/xml" > > > > If Ruby is anything like Python, it pulls those values from /etc/mime.types > > Not the Ruby one. It has them all hardcoded direct from the RFCs, plus some > metadata which /etc/mime.types doesn't include (for example, it notes which > MIME types refer to digital signatures) > > I guess if the server did this, and did it properly, it would free up all > the clients from having to worry about it. Yep, this is what we want to do. Apache httpd provides a way to configure this using regular configuration files, but as this wouldn't comfortably fit into an ini format, we would do well to just use a standard mime.types file and let users specify multiple ones. Merging these files is easy as pie. -- Noah Slater, http://tumbolia.org/nslater