Skip to content

Commit 04ad1f4

Browse files
committed
replacing headers by json:true
1 parent 70fbef8 commit 04ad1f4

File tree

1 file changed

+4
-11
lines changed
  • services/tone_analyzer

1 file changed

+4
-11
lines changed

services/tone_analyzer/v2.js

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,7 @@ ToneAnalyzer.prototype.synonym = function(params, callback) {
9696
qs: params,
9797
json: true
9898
},
99-
defaultOptions: extend(this._options, {
100-
headers: {
101-
'accept':'application/json'
102-
}
103-
})
99+
defaultOptions: extend(this._options, {})
104100
};
105101

106102
return requestFactory(parameters, callback);
@@ -121,13 +117,10 @@ ToneAnalyzer.prototype.scorecards = function(params, callback) {
121117
var parameters = {
122118
options: {
123119
url: '/v2/scorecards',
124-
method: 'GET'
120+
method: 'GET',
121+
json: true
125122
},
126-
defaultOptions: extend(this._options, {
127-
headers: {
128-
'accept':'application/json'
129-
}
130-
})
123+
defaultOptions: extend(this._options, {})
131124
};
132125

133126
return requestFactory(parameters, callback);

0 commit comments

Comments
 (0)