[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Undesired CRLFs coming from http.request (LuaSocket)
- From: Enrico Colombini <erix@...>
- Date: Tue, 21 Feb 2012 16:07:57 +0100
On 21/02/2012 16.00, Stuart P. Bentley wrote:
I'm trying to get a JPEG image through an http.request call, but when I
look at the body, something in the chain has gone and changed all the 0A
bytes to 0D0A, corrupting the image.
On Windows you should open non-text files in binary mode ("wb" to write).