Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #35 from nagrao/master

Bug fixed: File uploads garbled if more than 1 restler.post done simultaneously
  • Loading branch information...
commit 10ba598a7ceda992b5cf17f05da87be5758bc14f 2 parents 98bf226 + dce63c2
@ayoung ayoung authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/multipartform.js
View
4 lib/multipartform.js
@@ -109,7 +109,7 @@ Part.prototype = {
fs.open(this.value.path, "r", 0666, function (err, fd) {
if (err) throw err;
- position = 0;
+ var position = 0;
(function reader () {
fs.read(fd, 1024 * 4, position, "binary", function (er, chunk) {
@@ -199,4 +199,4 @@ var exportMethods = {
Object.keys(exportMethods).forEach(function(exportMethod) {
exports[exportMethod] = exportMethods[exportMethod]
-})
+})
Please sign in to comment.
Something went wrong with that request. Please try again.