Hi Mark, Thanks for diving into the code :) I've just fixed this bug in the SVN 2.0 branch.
I guess this solves the issue reported in your previous email? Best regards, Jerome -- Restlet ~ Founder and Technical Lead ~ http://www.restlet.org Noelios Technologies ~ http://www.noelios.com -----Message d'origine----- De : Mark Thornton [mailto:[email protected]] Envoyé : jeudi 25 novembre 2010 16:51 À : [email protected] Objet : Bug: ChunkedInputStream The condition in the checkCRLF method seems to be wrong. The && should be replaced by ||. (This is from the 2.0 branch) private void checkCRLF() throws IOException { final int cr = this.source.read(); final int lf = this.source.read(); if ((cr != '\r') && (lf != '\n')) { this.source.unread(lf); this.source.unread(cr); } } ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2685656 ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2685668

