Skip to content

Commit

Permalink
Merge pull request #1305 from LewisJEllis/master
Browse files Browse the repository at this point in the history
Fix typo in README.md
  • Loading branch information
nylen committed Dec 5, 2014
2 parents ce70514 + 1b9babc commit 14000be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -256,7 +256,7 @@ var formData = {
my_file: fs.createReadStream(__dirname + '/unicycle.jpg'),
// Pass multiple values /w an Array
attachments: [
fs.createReadStream(__dirname + '/attacment1.jpg'),
fs.createReadStream(__dirname + '/attachment1.jpg'),
fs.createReadStream(__dirname + '/attachment2.jpg')
],
// Pass optional meta-data with an 'options' object with style: {value: DATA, options: OPTIONS}
Expand All @@ -278,7 +278,7 @@ request.post({url:'http://service.com/upload', formData: formData}, function opt
});
```

For advanced cases, you can the form-data object itself via `r.form()`. This can be modified until the request is fired on the next cycle of the event-loop. (Note that this calling `form()` will clear the currently set form data for that request.)
For advanced cases, you can access the form-data object itself via `r.form()`. This can be modified until the request is fired on the next cycle of the event-loop. (Note that this calling `form()` will clear the currently set form data for that request.)

```javascript
// NOTE: Advanced use-case, for normal use see 'formData' usage above
Expand Down Expand Up @@ -314,7 +314,7 @@ Some variations in different HTTP implementations require a newline/CRLF before,
chunked: false,
data: [
{
'content-type': 'application/json',
'content-type': 'application/json',
body: JSON.stringify({foo: 'bar', _attachments: {'message.txt': {follows: true, length: 18, 'content_type': 'text/plain' }}})
},
{ body: 'I am an attachment' }
Expand Down

0 comments on commit 14000be

Please sign in to comment.