'Newline' not escaped when passed as string to HTTP request #2970

Closed
opened 2026-02-21 17:52:13 -05:00 by yindo · 0 comments
Owner

Originally created by @sigvardt on GitHub (May 6, 2024).

Self Checks

  • This is only for bug report, if you would like to ask a quesion, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • Pleas do not modify this template :) and fill in all the required fields.

Dify version

0.6.6

Cloud or Self Hosted

Cloud

Steps to reproduce

  1. Pass a text with a newline char (not \n) to HTTP request block
  2. Newline char is converted to \n
  3. All other special chars are escaped, but not \n

✔️ Expected Behavior

  • Expected newline to be escaped like \n and other special chars are

Actual Behavior

  • All other special chars are escaped, but newline is just converted to \n without being escaped
Originally created by @sigvardt on GitHub (May 6, 2024). ### Self Checks - [X] This is only for bug report, if you would like to ask a quesion, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] Pleas do not modify this template :) and fill in all the required fields. ### Dify version 0.6.6 ### Cloud or Self Hosted Cloud ### Steps to reproduce 1. Pass a text with a newline char (not \n) to HTTP request block 2. Newline char is converted to \n 3. All other special chars are escaped, but not \n ### ✔️ Expected Behavior - Expected newline to be escaped like \n and other special chars are ### ❌ Actual Behavior - All other special chars are escaped, but newline is just converted to \n without being escaped
yindo added the 🐞 bug label 2026-02-21 17:52:13 -05:00
yindo closed this issue 2026-02-21 17:52:14 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#2970