[drakma-devel] Lenient read-line*
Sean
rosssd at gmail.com
Thu Apr 26 14:16:18 UTC 2007
I've attached a small patch which makes chunga:read-line* a little more
lenient with regards to line endings.
Currently (drakma:http-request "http://news.ycombinator.com")
fails with an EOF since the arc server doesn't respond with CRLF but
only uses plain LF.
The attached patch works around this by assuming that when a LineFeed is
encountered it also designates the end of a line, although it is quite
possibly the wrong thing.
Cheers,
Sean.
--
...Please don't assume Lisp is only useful for Animation and Graphics,
AI, Bioinformatics, B2B and E-Commerce, Data Mining, EDA/Semiconductor
applications, Expert Systems, Finance, Intelligent Agents, Knowledge
Management, Mechanical CAD, Modeling and Simulation, Natural Language,
Optimization, Research, Risk Analysis, Scheduling, Telecom, and Web
Authoring just because these are the only things they happened to list.
Kent Pitman.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: read-star.patch
Type: text/x-patch
Size: 1344 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/drakma-devel/attachments/20070426/d9f1add9/attachment.bin>
More information about the Drakma-devel
mailing list