Skip to content

Commit

Permalink
Merge pull request #759 from francescobarbera/master
Browse files Browse the repository at this point in the history
[docs] add an example for complex object in multipart upload
  • Loading branch information
niftylettuce authored Feb 16, 2022
2 parents c2fd9ec + 729e818 commit e6d371c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ Anything you can do with superagent, you can do with supertest - for example mul
request(app)
.post('/')
.field('name', 'my awesome avatar')
.field('complex_object', '{"attribute": "value"}', {contentType: 'application/json'})
.attach('avatar', 'test/fixtures/avatar.jpg')
...
```
Expand Down

0 comments on commit e6d371c

Please sign in to comment.