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/28 14:12:06 UTC

[30/50] couch commit: updated refs/heads/master to 9d0ac7d

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 <rn...@apache.org>
Authored: Fri Aug 8 14:57:51 2014 +0100
Committer: Robert Newson <rn...@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