diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2021-02-26 14:02:06 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-26 14:02:06 +0000 |
commit | 15090de85075c9d7d54479b4bfd79057de64059b (patch) | |
tree | 70ba6e557818865d128d77839227e6331942df7d /tests/server.py | |
parent | Call out the need for an X-Forwarded-Proto in the upgrade notes (#9501) (diff) | |
download | synapse-15090de85075c9d7d54479b4bfd79057de64059b.tar.xz |
SSO: redirect to public URL before setting cookies (#9436)
... otherwise, we don't get the cookie back.
Diffstat (limited to '')
-rw-r--r-- | tests/server.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/server.py b/tests/server.py index d4ece5c448..939a0008ca 100644 --- a/tests/server.py +++ b/tests/server.py @@ -124,7 +124,11 @@ class FakeChannel: return address.IPv4Address("TCP", self._ip, 3423) def getHost(self): - return None + # this is called by Request.__init__ to configure Request.host. + return address.IPv4Address("TCP", "127.0.0.1", 8888) + + def isSecure(self): + return False @property def transport(self): |