Permalink
Browse files

Bug fixed: File upload failing if more than 1 restler.post done simul…

…taneously
  • Loading branch information...
nagrao committed Jun 27, 2011
1 parent f3340a0 commit dce63c2e7abf4a6053d6fb895a9ac2b2eef02434
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/multipartform.js
View
@@ -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]
-})
+})

0 comments on commit dce63c2

Please sign in to comment.