poco icon indicating copy to clipboard operation
poco copied to clipboard

Fix invalid request parsing.

Open anton-barabanov opened this issue 4 years ago • 2 comments

Problem is in case, when buffer stops reading in the last symbol of the line. Next time it will read '\r\n' sequence and interpret it as an empty line and set _end to true.

anton-barabanov avatar Apr 28 '20 16:04 anton-barabanov

I don't understand what issue this is solving.

obiltschnig avatar Jul 04 '22 19:07 obiltschnig

I guess what @anton-barabanov is saying is that, when readFromDevice reads \r\n only, it will interpret it as the end prematurely. But I'm not sure this fix is good and how to produce a test reproducing it.

aleks-f avatar Jul 05 '22 05:07 aleks-f