mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 10:56:06 -04:00
Remove spurious "SynapseRequest" result from `make_request"
This was never used, so let's get rid of it.
This commit is contained in:
parent
ac2acf1524
commit
394516ad1b
59 changed files with 742 additions and 983 deletions
|
@ -174,11 +174,11 @@ def make_request(
|
|||
custom_headers: Optional[
|
||||
Iterable[Tuple[Union[bytes, str], Union[bytes, str]]]
|
||||
] = None,
|
||||
):
|
||||
) -> FakeChannel:
|
||||
"""
|
||||
Make a web request using the given method, path and content, and render it
|
||||
|
||||
Returns the Request and the Channel underneath.
|
||||
Returns the fake Channel object which records the response to the request.
|
||||
|
||||
Args:
|
||||
site: The twisted Site to use to render the request
|
||||
|
@ -202,7 +202,7 @@ def make_request(
|
|||
is finished.
|
||||
|
||||
Returns:
|
||||
Tuple[synapse.http.site.SynapseRequest, channel]
|
||||
channel
|
||||
"""
|
||||
if not isinstance(method, bytes):
|
||||
method = method.encode("ascii")
|
||||
|
@ -265,7 +265,7 @@ def make_request(
|
|||
if await_result:
|
||||
channel.await_result()
|
||||
|
||||
return req, channel
|
||||
return channel
|
||||
|
||||
|
||||
@implementer(IReactorPluggableNameResolver)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue