[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Undesired CRLFs coming from http.request (LuaSocket)
- From: "Stuart P. Bentley" <stuart@...>
- Date: Tue, 21 Feb 2012 07:25:48 -0800
I'm really embarrassed that I forgot this. Thanks.
On Tue, 21 Feb 2012 07:05:34 -0800, David Given <firstname.lastname@example.org> wrote:
Stuart P. Bentley wrote:
local file = io.open("corrupt-jpeg.jpg",'w')
Any ideas for how to fix?
Open with 'wb' instead --- you've told it it's a text file, and it's
doing Unix<->DOS line ending conversion.