summary refs log tree commit diff
path: root/synapse/config/server.py
diff options
context:
space:
mode:
authorDaniel Wagner-Hall <dawagner@gmail.com>2015-10-02 17:13:51 -0500
committerDaniel Wagner-Hall <dawagner@gmail.com>2015-10-02 17:13:51 -0500
commit8fc52bc56a0813d40741f45164caa3230d3e00ec (patch)
treee5002c2a405f35138fd5b339defb7f6930db3d01 /synapse/config/server.py
parentMerge pull request #288 from matrix-org/markjh/unused_definitions (diff)
downloadsynapse-8fc52bc56a0813d40741f45164caa3230d3e00ec.tar.xz
Allow synapse's useragent to be customized
This will allow me to write tests which verify which server made HTTP
requests in a federation context.
Diffstat (limited to 'synapse/config/server.py')
-rw-r--r--synapse/config/server.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/config/server.py b/synapse/config/server.py
index 4d12d49857..50c4afdcfe 100644
--- a/synapse/config/server.py
+++ b/synapse/config/server.py
@@ -26,6 +26,7 @@ class ServerConfig(Config):
         self.soft_file_limit = config["soft_file_limit"]
         self.daemonize = config.get("daemonize")
         self.print_pidfile = config.get("print_pidfile")
+        self.user_agent_override = config.get("user_agent_override")
         self.use_frozen_dicts = config.get("use_frozen_dicts", True)
 
         self.listeners = config.get("listeners", [])