MaMengzhen opened a new issue, #6254:
URL: https://github.com/apache/shenyu/issues/6254

   ### Is there an existing issue for this?
   
   - [x] I have searched the existing issues
   
   ### Current Behavior
   
   The custom header in the request template was added to the request builder 
without replacing the value of the header.
   
   <img width="2350" height="966" alt="Image" 
src="https://github.com/user-attachments/assets/2cc852c7-8239-432d-b21b-b5aa8e4bab24";
 />
   
   <img width="2818" height="1406" alt="Image" 
src="https://github.com/user-attachments/assets/46853a0e-565a-40e1-9a0d-9a06a3226d53";
 />
   
   ### Expected Behavior
   
   When adding custom headers from the request template to the request builder, 
the value of the header needs to be replaced.
   
   <img width="2400" height="1472" alt="Image" 
src="https://github.com/user-attachments/assets/33aeefa9-0443-44ba-bcb4-9fdc4f58fe3b";
 />
   
   <!-- Failed to upload "header-3.png" -->
   
   ### Steps To Reproduce
   
   1. Include "headers" array in requestTemplate with header value containing 
"{{.key}}".
   2. Ensure inputJson has a matching key with a string value.
   3. Placeholder "{{.key}}" is replaced using inputJson before adding header.
   
   ### Environment
   
   ```markdown
   ShenYu version(s):2.7.1-SNAPSHOT
   ```
   
   ### Debug logs
   
   _No response_
   
   ### Anything else?
   
   _No response_


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to