You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2014/08/08 15:58:02 UTC

couch commit: updated refs/heads/windsor-merge to 744811f

Repository: couchdb-couch
Updated Branches:
  refs/heads/windsor-merge 5e14be68b -> 744811fb6


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/744811fb
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/744811fb
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch/diff/744811fb

Branch: refs/heads/windsor-merge
Commit: 744811fb6846f365965f4b43a58efd6699b5ced4
Parents: 5e14be6
Author: Robert Newson <rn...@apache.org>
Authored: Fri Aug 8 14:57:51 2014 +0100
Committer: Robert Newson <rn...@apache.org>
Committed: Fri Aug 8 14:57:51 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/744811fb/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