diff --git a/types/request-promise-native/request-promise-native-tests.ts b/types/request-promise-native/request-promise-native-tests.ts index d553ab3dcc..e4078ce2e9 100644 --- a/types/request-promise-native/request-promise-native-tests.ts +++ b/types/request-promise-native/request-promise-native-tests.ts @@ -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' } diff --git a/types/request/request-tests.ts b/types/request/request-tests.ts index 7e7a8a5722..2ee98bdf1d 100644 --- a/types/request/request-tests.ts +++ b/types/request/request-tests.ts @@ -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' } ]