The server may not return \r\n. It may just return \n
 On Feb 18, 2014 2:50 AM, "LELEU Jérôme" <notifications@github.com> wrote:

> In
> cas-client-core/src/main/java/org/jasig/cas/client/util/CommonUtils.java:
>
> >              }
> >
> > -            String line;
> > -            final StringBuilder stringBuffer = new StringBuilder(255);
> > -
> > -            while ((line = in.readLine()) != null) {
> > -                stringBuffer.append(line);
> > -                stringBuffer.append("\n");
>
> I may be missing the point, but why not keep the BufferedReader (I like
> buffers when doing IO) and change this line to:
> stringBuffer.append("\r\n");?
>
> In fact, it would generate one extra CR at the end, but this could be
> fixed easily.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/Jasig/java-cas-client/pull/63/files#r9814785>
> .
>