spire-io/shred — Issue #12: Seeing weirdness with Buffers in latest code...
Author: andyburke
Created: 2011-12-20 11:13:56+00:00
State: open

I used to be able to do:

console.log( response.content.body );

And get a string version of the body, which was useful for debugging. Now with the buffer change, I'm seeing a lot of:

What's the proper way to get:

1) A string representation of the response body?
2) A parsed representation of the response body? (Sometimes response.content.data seems to work, other times, it seems just to be a buffer...)