Skip to content

Commit 0030fb6

Browse files
committed
Don't set Content-Type: application/json by default
1 parent 8db2655 commit 0030fb6

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

lib/algorithmia.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ AlgorithmiaClient = (function() {
4444
AlgorithmiaClient.prototype.req = function(path, method, data, cheaders, callback) {
4545
var dheader, httpRequest, key, options, protocol, val;
4646
dheader = {
47-
'Content-Type': 'application/json',
48-
'Accept': 'application/json',
4947
'User-Agent': 'algorithmia-nodejs/' + packageJson.version + ' (NodeJS ' + process.version + ')'
5048
};
5149
if (this.apiKey) {

src/algorithmia.coffee

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ class AlgorithmiaClient
3838

3939
# default header
4040
dheader =
41-
'Content-Type': 'application/json'
42-
'Accept': 'application/json'
4341
'User-Agent': 'algorithmia-nodejs/' + packageJson.version + ' (NodeJS ' + process.version + ')'
4442
if @apiKey
4543
dheader['Authorization'] = @apiKey

0 commit comments

Comments
 (0)