couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject svn commit: r1061282 - in /couchdb/branches/1.1.x: etc/couchdb/default.ini.tpl.in src/couchdb/couch_util.erl
Date Thu, 20 Jan 2011 12:59:49 GMT
Author: rnewson
Date: Thu Jan 20 12:59:48 2011
New Revision: 1061282

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

Modified:
    couchdb/branches/1.1.x/etc/couchdb/default.ini.tpl.in
    couchdb/branches/1.1.x/src/couchdb/couch_util.erl

Modified: couchdb/branches/1.1.x/etc/couchdb/default.ini.tpl.in
URL: http://svn.apache.org/viewvc/couchdb/branches/1.1.x/etc/couchdb/default.ini.tpl.in?rev=1061282&r1=1061281&r2=1061282&view=diff
==============================================================================
--- couchdb/branches/1.1.x/etc/couchdb/default.ini.tpl.in (original)
+++ couchdb/branches/1.1.x/etc/couchdb/default.ini.tpl.in Thu Jan 20 12:59:48 2011
@@ -129,7 +129,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/branches/1.1.x/src/couchdb/couch_util.erl
URL: http://svn.apache.org/viewvc/couchdb/branches/1.1.x/src/couchdb/couch_util.erl?rev=1061282&r1=1061281&r2=1061282&view=diff
==============================================================================
--- couchdb/branches/1.1.x/src/couchdb/couch_util.erl (original)
+++ couchdb/branches/1.1.x/src/couchdb/couch_util.erl Thu Jan 20 12:59:48 2011
@@ -393,7 +393,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