Merge pull request #5694 from Erethon/template_fix_matrix

fix: Remove content-type header check for matrix
patch-1
Prince Chaddha 2022-11-06 12:59:02 +05:30 committed by GitHub
commit d1615bf72f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 16 deletions

View File

@ -10,6 +10,8 @@ info:
requests:
- method: GET
redirects: true
max-redirects: 2
path:
- "{{BaseURL}}/.well-known/matrix/server"
- "{{BaseURL}}/.well-known/matrix/client"
@ -17,15 +19,15 @@ requests:
matchers-condition: and
matchers:
- type: word
part: body
words:
- "m."
- type: regex
regex:
- '"m\.([a-z]+)":'
- type: word
part: header
words:
- "text/plain"
- text/html
negative: true
- type: status
status:
@ -34,18 +36,7 @@ requests:
extractors:
- type: json
part: body
name: server-to-server
json:
- '."m.server" | select( . != null )'
- type: json
part: body
name: client-homeserver
json:
- '."m.homeserver" | .base_url | select( . != null )'
- type: json
part: body
name: identity-server
json:
- '."m.identity_server" | .base_url | select( . != null )'