Closed cihadturhan closed 8 years ago
hey @cihadturhan, try setting encoding: null
- that should definitely return a buffer from request.
i am guessing that lwip interprets any String it finds as a filename.
That's right, body
needs to be an instance of Buffer
.
Here is my code:
It throws the following error:
[Error: Path must be a string without null bytes.]
I checked the buffer with
console.log
, and it prints a garbled string - because it's a binary - so I see binary data is not null.Could anyone tell me what's wrong?