summary refs log tree commit diff
path: root/scripts-dev
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-08-02 15:06:08 +0100
committerErik Johnston <erik@matrix.org>2016-08-02 15:06:17 +0100
commitfcde5b2a9782d1f49f56d0e8ce694e66eeb6c04f (patch)
tree2c1550a35579a52ae22ae5fc398819c47ce22973 /scripts-dev
parentMerge pull request #967 from matrix-org/erikj/fed_reader (diff)
downloadsynapse-fcde5b2a9782d1f49f56d0e8ce694e66eeb6c04f.tar.xz
Print authorization header for federation_client.py
Diffstat (limited to 'scripts-dev')
-rw-r--r--scripts-dev/federation_client.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/scripts-dev/federation_client.py b/scripts-dev/federation_client.py
index ea62dceb36..caa3cee4e7 100644
--- a/scripts-dev/federation_client.py
+++ b/scripts-dev/federation_client.py
@@ -116,11 +116,12 @@ def get_json(origin_name, origin_key, destination, path):
     authorization_headers = []
 
     for key, sig in signed_json["signatures"][origin_name].items():
-        authorization_headers.append(bytes(
-            "X-Matrix origin=%s,key=\"%s\",sig=\"%s\"" % (
-                origin_name, key, sig,
-            )
-        ))
+        header = "X-Matrix origin=%s,key=\"%s\",sig=\"%s\"" % (
+            origin_name, key, sig,
+        )
+        authorization_headers.append(bytes(header))
+        sys.stderr.write(header)
+        sys.stderr.write("\n")
 
     result = requests.get(
         lookup(destination, path),