Skip to content

Commit

Permalink
Fix typo in form example
Browse files Browse the repository at this point in the history
  • Loading branch information
mscdex committed Apr 23, 2014
1 parent 7e30bf4 commit 27b95f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ var r = request.post('http://service.com/upload', function optionalCallback (err
var form = r.form()
form.append('my_field', 'my_value')
form.append('my_buffer', new Buffer([1, 2, 3]))
form.append('my_file', fs.createReadStream(path.join(__dirname, 'doodle.png'))
form.append('my_file', fs.createReadStream(path.join(__dirname, 'doodle.png')))
form.append('remote_file', request('http://google.com/doodle.png'))

// Just like always, `r` is a writable stream, and can be used as such (you have until nextTick to pipe it, etc.)
Expand Down

0 comments on commit 27b95f0

Please sign in to comment.