Skip to content

Commit 4a44986

Browse files
Merge pull request #119 from opencomponents/remove-datatype
remove dataType
2 parents b8b161f + 095210b commit 4a44986

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

src/oc-client.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,6 @@ var oc = oc || {};
273273
error: cb
274274
};
275275
if (jsonRequest) {
276-
ajaxOptions.dataType = 'json';
277276
headers['Content-Type'] = 'application/json';
278277
}
279278

test/get-data.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ describe('oc-client : getData', function () {
166166
expect(spy.args[0][0].data).toEqual(
167167
'{"components":[{"name":"myComponent","version":"6.6.6","parameters":{"name":"evil"}}]}'
168168
);
169-
expect(spy.args[0][0].dataType).toEqual('json');
170169
expect(spy.args[0][0].headers['Content-Type']).toEqual(
171170
'application/json'
172171
);

0 commit comments

Comments
 (0)