This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a commit to branch fix-fix-uri-for-replicate
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 79159f64a02f61e8f45557300af0ea033f06dcb8
Author: Nick Vatamaniuc <[email protected]>
AuthorDate: Sat Dec 17 13:53:55 2022 -0500

    Ensure we use the chttpd vs httpd section in fix_uri
    
    It's a deprecated feature but we want to make sure it still works.
---
 src/chttpd/src/chttpd.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/chttpd/src/chttpd.erl b/src/chttpd/src/chttpd.erl
index c25c18838..f395a236e 100644
--- a/src/chttpd/src/chttpd.erl
+++ b/src/chttpd/src/chttpd.erl
@@ -574,7 +574,7 @@ make_uri(Req, Raw) ->
     Port = integer_to_list(mochiweb_socket_server:get(chttpd, port)),
     Url = list_to_binary([
         "http://";,
-        config:get("httpd", "bind_address"),
+        config:get("chttpd", "bind_address"),
         ":",
         Port,
         "/",

Reply via email to