From f57948efb95ad460a2bfce3923696e2580561e6b Mon Sep 17 00:00:00 2001 From: Robert Newson Date: Thu, 20 Jan 2011 12:59:48 +0000 Subject: COUCHDB-1034 - ignore runs of whitespace between content types in compressible_types list git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.1.x@1061282 13f79535-47bb-0310-9956-ffa450edef68 --- src/couchdb/couch_util.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/couchdb/couch_util.erl b/src/couchdb/couch_util.erl index 3c18bacd..0480f230 100644 --- a/src/couchdb/couch_util.erl +++ b/src/couchdb/couch_util.erl @@ -393,7 +393,7 @@ compressible_att_type(MimeType) when is_binary(MimeType) -> compressible_att_type(MimeType) -> TypeExpList = re:split( couch_config:get("attachments", "compressible_types", ""), - ", ?", + "\\s*,\\s*", [{return, list}] ), lists:any( -- cgit v1.2.3