anonymousland-synapse/synapse/rest
Lukas Lihotzki 145cb6d08e
Fix getTurnServer response: return an integer ttl (#10922)
`ttl` must be an integer according to the OpenAPI spec:
https://github.com/matrix-org/matrix-doc/blob/old_master/data/api/client-server/voip.yaml#L70

True division (`/`) returns a float instead (`"ttl": 7200.0`).
Floor division (`//`) returns an integer, so the response is spec compliant.

Signed-off-by: Lukas Lihotzki <lukas@lihotzki.de>
2021-09-30 08:04:55 -04:00
..
admin Use direct references for configuration variables (part 5). (#10897) 2021-09-24 07:25:21 -04:00
client Fix getTurnServer response: return an integer ttl (#10922) 2021-09-30 08:04:55 -04:00
consent Use direct references for configuration variables (part 4). (#10893) 2021-09-23 12:03:01 -04:00
key Add reactor to SynapseRequest and fix up types. (#10868) 2021-09-24 11:01:25 +01:00
media Fix empty url_cache_thumbnails/yyyy-mm-dd/ directories being left behind (#10924) 2021-09-29 10:24:37 +01:00
synapse Use direct references for configuration variables (part 5). (#10897) 2021-09-24 07:25:21 -04:00
__init__.py Add missing type hints to non-client REST servlets. (#10817) 2021-09-15 08:45:32 -04:00
health.py Add missing type hints to non-client REST servlets. (#10817) 2021-09-15 08:45:32 -04:00
well_known.py Add missing type hints to non-client REST servlets. (#10817) 2021-09-15 08:45:32 -04:00