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/c4845204 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/c4845204 Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch/diff/c4845204 Branch: refs/heads/windsor-merge Commit: c48452040a08431df560d080f0ebca7a9c490ad6 Parents: 439db65 Author: Robert Newson <[email protected]> Authored: Fri Aug 8 14:57:51 2014 +0100 Committer: Robert Newson <[email protected]> Committed: Tue Aug 26 10:42:38 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/c4845204/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
