couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chewbranca <...@git.apache.org>
Subject [GitHub] couchdb-couch pull request: Allow couch_httpd_cors to be disable b...
Date Fri, 07 Nov 2014 22:26:16 GMT
GitHub user chewbranca opened a pull request:

    https://github.com/apache/couchdb-couch/pull/14

    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.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/apache/couchdb-couch 2080-port-cors-to-chttpd

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/couchdb-couch/pull/14.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #14
    
----
commit d20fb113237da8153386feee2359395d2d07b5d9
Author: Russell Branca <chewbranca@apache.org>
Date:   2014-11-06T22:53:28Z

    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.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message