commit | 529339b6c326cea998129198b1373f31caed66f0 | [log] [tgz] |
---|---|---|
author | Russell Branca <chewbranca@apache.org> | Thu Nov 06 14:53:28 2014 -0800 |
committer | Russell Branca <chewbranca@apache.org> | Tue Jun 02 19:35:04 2015 +0000 |
tree | 86f731b46ac189b4079bb1352c648cfde26b72f3 | |
parent | aa5d63fce03f6bac18e7c1ffbbaf84f898baf010 [diff] |
Allow couch_httpd_cors to be disable by the calling process In chttpd we call into couch_httpd for the low level http functions like send_json. The function couch_httpd:send_response/4 calls out to couch_httpd_cors, which will cause duplicate CORS headers to be set when we've already gone through chttpd_cors. This is a bit of a hack but it's a good temporary measure until we consolidate couch_httpd and chttpd down to one http stack.