couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [30/50] couch commit: updated refs/heads/master to 9d0ac7d
Date Thu, 28 Aug 2014 12:12:06 GMT
squashme! ignore all parameters in content-type, not just exactly one (grgrgrgrgrgrgrgrrr!!!)


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/401f64ff
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/401f64ff
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch/diff/401f64ff

Branch: refs/heads/master
Commit: 401f64ff18fef258313fd56a185b89319ea81b98
Parents: ee67f0e
Author: Robert Newson <rnewson@apache.org>
Authored: Fri Aug 8 14:57:51 2014 +0100
Committer: Robert Newson <rnewson@apache.org>
Committed: Thu Aug 28 13:00:01 2014 +0100

----------------------------------------------------------------------
 src/couch_httpd.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/401f64ff/src/couch_httpd.erl
----------------------------------------------------------------------
diff --git a/src/couch_httpd.erl b/src/couch_httpd.erl
index 8022a02..0c5af59 100644
--- a/src/couch_httpd.erl
+++ b/src/couch_httpd.erl
@@ -413,7 +413,7 @@ validate_ctype(Req, Ctype) ->
     ReqCtype ->
         case string:tokens(ReqCtype, ";") of
         [Ctype] -> ok;
-        [Ctype, _Rest] -> ok;
+        [Ctype | _Rest] -> ok;
         _Else ->
             throw({bad_ctype, "Content-Type must be "++Ctype})
         end


Mime
View raw message