Skip to content
This repository has been archived by the owner on Apr 19, 2021. It is now read-only.

Line endings altered #33

Open
sebasi opened this issue Jun 4, 2015 · 0 comments
Open

Line endings altered #33

sebasi opened this issue Jun 4, 2015 · 0 comments

Comments

@sebasi
Copy link

sebasi commented Jun 4, 2015

Hi,

I liked the simplicity of this tool, so I used it to debug a email sending component.

Unfortunately the code "changes" the data it receives. There a few issues with convertStreamToString():

  • I want to see all headers received, the first 4 lines should not be cut away
  • readLine() works with LF and CRLF, where CRLF is the expected one (according to RFC2821 section 4.1.1.4). When you write it out, you append only LF (on unix). So the data is altered and you don't know what came in originally.

I think it would be better to just read and dump the stream, without modifying it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant