You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2019/07/19 17:21:27 UTC

[GitHub] [couchdb-documentation] nickva commented on issue #423: Update local replication documentation

nickva commented on issue #423: Update local replication documentation
URL: https://github.com/apache/couchdb-documentation/pull/423#issuecomment-513308687
 
 
   What happens with `_replicate` replications is that we perform a "hack" where we translate "local" looking like endpoint names into fully qualified URL ones:
   
   https://github.com/apache/couchdb/blob/master/src/chttpd/src/chttpd.erl#L406-L418
   
   We don't know the actual server URL (since we could be behind a proxy) so we just look at what port and address the local CouchDB server is listening on, then also re-use the authorization and cookie params from the _replicate request.
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services