[GH-ISSUE #4016] [bug]: Wrong line endings #1419

Open
opened 2026-03-16 20:16:42 +03:00 by kerem · 0 comments
Owner

Originally created by @TomB2 on GitHub (Apr 29, 2024).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4016

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

The local Hoppscotch editor for Windows sends LF rather that CRLF line endings for requests.

This is an severe issue for multipart/related requests as they require CRLF line endings.
See https://datatracker.ietf.org/doc/html/rfc7231#section-3.1.1.4

Please ensure that proper CRLF line endings get send.

Steps to reproduce

Create any multipart request

Header:
multipart/related; type="application/xop+xml";start="http://tempuri.org/0";boundary="uuid:c321d6a5-6333-42f5-9221-8d88622b2de0+id=34";start-info="text/xml

Content:
--uuid:c321d6a5-6333-42f5-9221-8d88622b2de0+id=34
Content-ID: http://tempuri.org/0
Content-Transfer-Encoding: 8bit
Content-Type: application/xop+xml;charset=utf-8;type="text/xml"

Some xml data
--uuid:c321d6a5-6333-42f5-9221-8d88622b2de0+id=34
Content-Type: application/pkcs7-signature
Content-Transfer-Encoding: binary
Content-ID: http://example.org/my.hsh

Some binary data
--uuid:c321d6a5-6333-42f5-9221-8d88622b2de0+id=34--

And check the raw request in your receiver of choice

Environment

Production

Version

Local

Originally created by @TomB2 on GitHub (Apr 29, 2024). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4016 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current behavior The local Hoppscotch editor for Windows sends LF rather that CRLF line endings for requests. This is an severe issue for multipart/related requests as they require CRLF line endings. See https://datatracker.ietf.org/doc/html/rfc7231#section-3.1.1.4 Please ensure that proper CRLF line endings get send. ### Steps to reproduce Create any multipart request **Header:** multipart/related; type="application/xop+xml";start="<http://tempuri.org/0>";boundary="uuid:c321d6a5-6333-42f5-9221-8d88622b2de0+id=34";start-info="text/xml **Content:** --uuid:c321d6a5-6333-42f5-9221-8d88622b2de0+id=34 Content-ID: <http://tempuri.org/0> Content-Transfer-Encoding: 8bit Content-Type: application/xop+xml;charset=utf-8;type="text/xml" Some xml data --uuid:c321d6a5-6333-42f5-9221-8d88622b2de0+id=34 Content-Type: application/pkcs7-signature Content-Transfer-Encoding: binary Content-ID: <http://example.org/my.hsh> Some binary data --uuid:c321d6a5-6333-42f5-9221-8d88622b2de0+id=34-- And check the raw request in your receiver of choice ### Environment Production ### Version Local
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#1419
No description provided.