mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Merge pull request #17253 from DefinitelyTyped/weak-type-errors-in-request
Weak type errors in request
This commit is contained in:
@@ -186,7 +186,7 @@ rpn({
|
||||
uri: 'http://service.com/upload',
|
||||
multipart: [
|
||||
{
|
||||
'content-type': 'application/json',
|
||||
headers: { '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' },
|
||||
@@ -410,7 +410,7 @@ rpn(
|
||||
uri: 'http://mikeal.iriscouch.com/testjs/' + rand,
|
||||
multipart:
|
||||
[{
|
||||
'content-type': 'application/json',
|
||||
headers: { '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' }
|
||||
|
||||
@@ -363,7 +363,7 @@ request({
|
||||
uri: 'http://service.com/upload',
|
||||
multipart: [
|
||||
{
|
||||
'content-type': 'application/json',
|
||||
headers: { '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' },
|
||||
@@ -600,8 +600,8 @@ var rand = Math.floor(Math.random()*100000000).toString();
|
||||
{ method: 'PUT'
|
||||
, uri: 'http://mikeal.iriscouch.com/testjs/' + rand
|
||||
, multipart:
|
||||
[ { 'content-type': 'application/json'
|
||||
, body: JSON.stringify({foo: 'bar', _attachments: {'message.txt': {follows: true, length: 18, 'content_type': 'text/plain' }}})
|
||||
[ { headers: { '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' }
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user