Skip to content

Commit

Permalink
Merge pull request #643 from matrix-org/t3chguy/content-type-bugfix
Browse files Browse the repository at this point in the history
fix typo where `headers` was not being used and thus sent wrong content-type
  • Loading branch information
t3chguy authored Jun 8, 2018
2 parents eaa2fde + 1bf1ce7 commit b7208c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ module.exports.MatrixHttpApi.prototype = {
body: data,
json: false,
timeout: localTimeoutMs,
headers: opts.headers || {},
headers: headers || {},
_matrix_opts: this.opts,
},
function(err, response, body) {
Expand Down

0 comments on commit b7208c1

Please sign in to comment.