You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
[FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
Please do not modify this template :) and fill in all the required fields.
Dify version
0.15.1
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
The reproduction steps are as follows:
Add an HTTP request node in workflow;
Configure the post request, where the Headers add the key Host and the value is customized;
Execute the http request node;
When grabbing the headers from the interface server, it was found that the Host in the original request headers had been replaced; As shown in the following figure
Due to the replacement of the Headers content, some interfaces may require specifying the Host when making requests, which can lead to exceptions
✔️ Expected Behavior
The Headers of the HTTP request node in workflow retains the original information and sends it to the server
❌ Actual Behavior
Now, in the dify version of workflow, the HTTP request node will replace the Headers content when sending requests
The text was updated successfully, but these errors were encountered:
The issue you're experiencing with the HTTP request node in Dify replacing the 'Host' header is likely due to how headers are managed in the code. The 'Host' header is set in the to_log method for logging purposes, but this does not affect the actual request sent [1]. However, there might be other parts of the system or network configuration that could be altering the 'Host' header during request execution.
To address this, you might want to check if there are any middleware or network configurations in your environment that could be modifying the 'Host' header. Additionally, reviewing the _assembling_headers method in the Executor class could provide insights into how headers are being set or modified before the request is sent [1]. If the issue persists, consider looking into any custom configurations or proxies that might be affecting the request headers.
Self Checks
Dify version
0.15.1
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
The reproduction steps are as follows:
Due to the replacement of the Headers content, some interfaces may require specifying the Host when making requests, which can lead to exceptions
✔️ Expected Behavior
The Headers of the HTTP request node in workflow retains the original information and sends it to the server
❌ Actual Behavior
Now, in the dify version of workflow, the HTTP request node will replace the Headers content when sending requests
The text was updated successfully, but these errors were encountered: