Skip to content

Commit

Permalink
Bug fixed: File upload failing if more than 1 restler.post done simul…
Browse files Browse the repository at this point in the history
…taneously
  • Loading branch information
nagrao committed Jun 27, 2011
1 parent f3340a0 commit dce63c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/multipartform.js
Expand Up @@ -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) {
Expand Down Expand Up @@ -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.