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

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


The following commit(s) were added to refs/heads/master by this push:
     new c7ed9f69 Add headers to sub cntl. (#2943)
c7ed9f69 is described below

commit c7ed9f69823b2e4a946003effe3478f90b7127d4
Author: beesflower <159674473+beesflo...@users.noreply.github.com>
AuthorDate: Tue Apr 8 23:33:52 2025 +0800

    Add headers to sub cntl. (#2943)
    
    * add headers to sub cntl.
    
    * Simplify header copy
    
    ---------
    
    Co-authored-by: beeflowers <lucky...@163.com>
---
 src/brpc/selective_channel.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/brpc/selective_channel.cpp b/src/brpc/selective_channel.cpp
index 5a815821..88779943 100644
--- a/src/brpc/selective_channel.cpp
+++ b/src/brpc/selective_channel.cpp
@@ -334,7 +334,8 @@ int Sender::IssueRPC(int64_t start_realtime_us) {
     sub_cntl->set_request_code(_main_cntl->request_code());
     // Forward request attachment to the subcall
     sub_cntl->request_attachment().append(_main_cntl->request_attachment());
-    
+    sub_cntl->http_request() = _main_cntl->http_request();
+
     sel_out.channel()->CallMethod(_main_cntl->_method,
                                   &r.sub_done->_cntl,
                                   _request,


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org

Reply via email to