Skip to content

Commit

Permalink
Fix binary uploads.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcolyer committed May 1, 2010
1 parent 8b6c4d3 commit 970ff87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/express/core.js
Expand Up @@ -238,7 +238,7 @@ Server = new Class({
})
.addListener('body', function(chunk) {
if (stream.part.fileStream)
stream.part.fileStream.write(chunk)
stream.part.fileStream.write(chunk, 'binary')
else
stream.part.buf += chunk
})
Expand Down

0 comments on commit 970ff87

Please sign in to comment.