mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-07-18 23:34:04 +02:00
Matrix token call should send JSON
Makes curl send the Content-Type header as application/json to avoid an M_NOT_JSON response code.
This commit is contained in:
parent
7c88a38df3
commit
6d7d2b8264
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@
|
||||||
{{ $t("matrixDesc1") }}
|
{{ $t("matrixDesc1") }}
|
||||||
</p>
|
</p>
|
||||||
<i18n-t tag="p" keypath="matrixDesc2" style="margin-top: 8px;">
|
<i18n-t tag="p" keypath="matrixDesc2" style="margin-top: 8px;">
|
||||||
<code>curl -XPOST -d '{"type": "m.login.password", "identifier": {"user": "botusername", "type": "m.id.user"}, "password": "passwordforuser"}' "https://home.server/_matrix/client/v3/login"</code>.
|
<code>curl -XPOST --json '{"type": "m.login.password", "identifier": {"user": "botusername", "type": "m.id.user"}, "password": "passwordforuser"}' "https://home.server/_matrix/client/v3/login"</code>.
|
||||||
</i18n-t>
|
</i18n-t>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Add table
Reference in a new issue