Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 2 contributors
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/cloudapp.js
View
5 lib/cloudapp.js
@@ -42,7 +42,8 @@ var makeCloudRequest = function (url, cb, method, body, h) {
pos += buffer.write('; filename="' + body[key].getFilename() + '"\r\n', pos);
pos += buffer.write('Content-Type: ' + body[key].getMimetype(), pos);
pos += buffer.write('\r\n\r\n', pos);
- pos += buffer.write(body[key].data.toString('binary'), pos);
+ body[key].data.copy(buffer, pos);
+ pos += body[key].data.length;
}
else {
pos += buffer.write('\r\n\r\n', pos);
@@ -178,4 +179,4 @@ exports.addFile = function (filename, cb) {
exports.remove = function(slug, cb) {
makeCloudRequest('http://my.cl.ly/' + slug, cb, 'DELETE');
-};
+};

No commit comments for this range

Something went wrong with that request. Please try again.