mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-25 02:55:46 +03:00
Merge remote-tracking branch 'origin/develop' into release-v1.104
This commit is contained in:
commit
34878b6bc9
2 changed files with 8 additions and 0 deletions
1
changelog.d/17031.feature
Normal file
1
changelog.d/17031.feature
Normal file
|
@ -0,0 +1 @@
|
|||
OIDC: try to JWT decode userinfo response if JSON parsing failed.
|
|
@ -390,6 +390,13 @@ class BaseHttpClient:
|
|||
cooperator=self._cooperator,
|
||||
)
|
||||
|
||||
# Always make sure we add a user agent to the request
|
||||
if headers is None:
|
||||
headers = Headers()
|
||||
|
||||
if not headers.hasHeader("User-Agent"):
|
||||
headers.addRawHeader("User-Agent", self.user_agent)
|
||||
|
||||
request_deferred: defer.Deferred = treq.request(
|
||||
method,
|
||||
uri,
|
||||
|
|
Loading…
Reference in a new issue