langgenius / dify

Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.
https://dify.ai
Other
35.59k stars 4.8k forks source link

fix: HTTP request header is overwritten when user set Content-Type #5628

Closed hjlarry closed 2 days ago

hjlarry commented 3 days ago

Description

Fixes https://github.com/langgenius/dify/issues/5611 If the user explicity sets the Content-Type field, we should not overwrite it.

Type of Change

How Has This Been Tested?

test locally

Suggested Checklist:

Yeuoly commented 2 days ago

Nice fixing~