Skip to content
Browse files

fixes invalid reference to instance variable

  • Loading branch information...
1 parent 6d02e59 commit 4c6cd3362de7ecb6e6fd6a51061bfc71a22ff86f @c4milo c4milo committed Dec 29, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/multipartform.js
View
4 lib/multipartform.js
@@ -142,7 +142,7 @@ function MultiPartRequest(data, boundary) {
MultiPartRequest.prototype = {
_partNames: function() {
- var partNames = []
+ var partNames = [];
for (var name in this.data) {
partNames.push(name)
}
@@ -158,7 +158,7 @@ MultiPartRequest.prototype = {
// Let each part write itself out to the stream
(function writePart() {
- var partName = this.partNames[partCount];
+ var partName = self.partNames[partCount];
var part = new Part(partName, self.data[partName], self.boundary);
part.write(stream, function (err) {
if (err) {

0 comments on commit 4c6cd33

Please sign in to comment.
Something went wrong with that request. Please try again.