You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-25 05:23:13 +03:00
Merge pull request #643 from matrix-org/t3chguy/content-type-bugfix
fix typo where `headers` was not being used and thus sent wrong content-type
This commit is contained in:
@@ -730,7 +730,7 @@ module.exports.MatrixHttpApi.prototype = {
|
|||||||
body: data,
|
body: data,
|
||||||
json: false,
|
json: false,
|
||||||
timeout: localTimeoutMs,
|
timeout: localTimeoutMs,
|
||||||
headers: opts.headers || {},
|
headers: headers || {},
|
||||||
_matrix_opts: this.opts,
|
_matrix_opts: this.opts,
|
||||||
},
|
},
|
||||||
function(err, response, body) {
|
function(err, response, body) {
|
||||||
|
|||||||
Reference in New Issue
Block a user