couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject svn commit: r1061283 - in /couchdb/trunk: etc/couchdb/default.ini.tpl.in src/couchdb/couch_db.erl
Date Thu, 20 Jan 2011 13:00:41 GMT
Author: rnewson
Date: Thu Jan 20 13:00:41 2011
New Revision: 1061283

URL: http://svn.apache.org/viewvc?rev=1061283&view=rev
Log:
COUCHDB-1034 - ignore runs of whitespace between content types in compressible_types list

Modified:
    couchdb/trunk/etc/couchdb/default.ini.tpl.in
    couchdb/trunk/src/couchdb/couch_db.erl

Modified: couchdb/trunk/etc/couchdb/default.ini.tpl.in
URL: http://svn.apache.org/viewvc/couchdb/trunk/etc/couchdb/default.ini.tpl.in?rev=1061283&r1=1061282&r2=1061283&view=diff
==============================================================================
--- couchdb/trunk/etc/couchdb/default.ini.tpl.in (original)
+++ couchdb/trunk/etc/couchdb/default.ini.tpl.in Thu Jan 20 13:00:41 2011
@@ -132,7 +132,7 @@ samples = [0, 60, 300, 900]
 
 [attachments]
 compression_level = 8 ; from 1 (lowest, fastest) to 9 (highest, slowest), 0 to disable compression
-compressible_types = text/*, application/javascript, application/json,  application/xml
+compressible_types = text/*, application/javascript, application/json, application/xml
 
 [replicator]
 db = _replicator

Modified: couchdb/trunk/src/couchdb/couch_db.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_db.erl?rev=1061283&r1=1061282&r2=1061283&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_db.erl (original)
+++ couchdb/trunk/src/couchdb/couch_db.erl Thu Jan 20 13:00:41 2011
@@ -868,7 +868,7 @@ compressible_att_type(MimeType) when is_
 compressible_att_type(MimeType) ->
     TypeExpList = re:split(
         couch_config:get("attachments", "compressible_types", ""),
-        ", ?",
+        "\\s*,\\s*",
         [{return, list}]
     ),
     lists:any(



Mime
View raw message