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

liaoxin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new a876fb43724 [fix](https) fix be to_load_error_http_path return  url in 
https mode (#61785)
a876fb43724 is described below

commit a876fb4372425be6a4daadd5c0da539ab1e0c9cb
Author: Guangming Lu <[email protected]>
AuthorDate: Mon Mar 30 14:12:28 2026 +0800

    [fix](https) fix be to_load_error_http_path return  url in https mode 
(#61785)
    
    ### What problem does this PR solve?
    
    Issue Number: close #61780
    
    Related PR: #61780
    
    Problem Summary:
    to_load_error_http_path return http url is incorrect in https mode
---
 be/src/runtime/fragment_mgr.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/be/src/runtime/fragment_mgr.cpp b/be/src/runtime/fragment_mgr.cpp
index b59ae3bbf25..f028f440ce9 100644
--- a/be/src/runtime/fragment_mgr.cpp
+++ b/be/src/runtime/fragment_mgr.cpp
@@ -121,7 +121,8 @@ std::string to_load_error_http_path(const std::string& 
file_name) {
         return file_name;
     }
     std::stringstream url;
-    url << "http://"; << get_host_port(BackendOptions::get_localhost(), 
config::webserver_port)
+    url << (config::enable_https ? "https" : "http") << "://"
+        << get_host_port(BackendOptions::get_localhost(), 
config::webserver_port)
         << "/api/_load_error_log?"
         << "file=" << file_name;
     return url.str();


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to