diff options
author | Patrick Cloke <patrickc@matrix.org> | 2020-07-02 11:01:47 -0400 |
---|---|---|
committer | Patrick Cloke <patrickc@matrix.org> | 2020-07-02 11:02:42 -0400 |
commit | f2bcc6ecbfcb5e9486e3ab53dd41fd458d61587f (patch) | |
tree | d9f3c46ff7f20b373ee6b74562a8657718eea9ae /synapse/app/homeserver.py | |
parent | Fix new metric where we used ms instead of seconds (#7771) (diff) | |
parent | Merge tag 'v1.15.2' (diff) | |
download | synapse-f2bcc6ecbfcb5e9486e3ab53dd41fd458d61587f.tar.xz |
Merge branch 'master' into release-v1.16.0
Diffstat (limited to 'synapse/app/homeserver.py')
-rw-r--r-- | synapse/app/homeserver.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/app/homeserver.py b/synapse/app/homeserver.py index 299134d00f..09291d86ad 100644 --- a/synapse/app/homeserver.py +++ b/synapse/app/homeserver.py @@ -56,6 +56,7 @@ from synapse.http.server import ( OptionsResource, RootOptionsRedirectResource, RootRedirect, + StaticResource, ) from synapse.http.site import SynapseSite from synapse.logging.context import LoggingContext @@ -228,7 +229,7 @@ class SynapseHomeServer(HomeServer): if name in ["static", "client"]: resources.update( { - STATIC_PREFIX: File( + STATIC_PREFIX: StaticResource( os.path.join(os.path.dirname(synapse.__file__), "static") ) } |