Skip to content

Conversation

@dhendo
Copy link

@dhendo dhendo commented Dec 16, 2011

If a buffer is returned from a route, currently Journey will error on the line, as byteLength is expecting a string.

Buffer.byteLength(outcome.body);

Seeing as converting a Buffer to JSON is not a huge amount of use, my patch returns the buffer, and retains the Content-Type as is.

I know journey is supposed to be JSON-only, but the code change to support binary files is minimal and low impact.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants