Include a comment before jsonp output
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/f5be4963 Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/f5be4963 Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/f5be4963 Branch: refs/heads/1.0.x Commit: f5be496314b4c436eb5f4d540a25f887202c94bd Parents: 6cc84db Author: Robert Newson <[email protected]> Authored: Wed Dec 19 00:45:22 2012 +0000 Committer: Robert Newson <[email protected]> Committed: Wed Dec 19 01:22:10 2012 +0000 ---------------------------------------------------------------------- src/couchdb/couch_httpd.erl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb/blob/f5be4963/src/couchdb/couch_httpd.erl ---------------------------------------------------------------------- diff --git a/src/couchdb/couch_httpd.erl b/src/couchdb/couch_httpd.erl index be19ea9..e4b25c3 100644 --- a/src/couchdb/couch_httpd.erl +++ b/src/couchdb/couch_httpd.erl @@ -652,7 +652,7 @@ start_jsonp(Req) -> case couch_config:get("httpd", "allow_jsonp", "false") of "true" -> validate_callback(CallBack), - CallBack ++ "("; + ["/* CouchDB */", CallBack, "("]; _Else -> % this could throw an error message, but instead we just ignore the % jsonp parameter
