Remove /context/ request
This commit is contained in:
parent
97a096b507
commit
328dab2463
|
@ -272,13 +272,6 @@ class ReplicationLayer(object):
|
||||||
|
|
||||||
defer.returnValue(pdus)
|
defer.returnValue(pdus)
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
|
||||||
@log_function
|
|
||||||
def on_context_pdus_request(self, context):
|
|
||||||
raise NotImplementedError(
|
|
||||||
"on_context_pdus_request is a security violation"
|
|
||||||
)
|
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
@log_function
|
@log_function
|
||||||
def on_backfill_request(self, context, versions, limit):
|
def on_backfill_request(self, context, versions, limit):
|
||||||
|
|
|
@ -403,15 +403,6 @@ class TransportLayer(object):
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
self.server.register_path(
|
|
||||||
"GET",
|
|
||||||
re.compile("^" + PREFIX + "/context/([^/]*)/$"),
|
|
||||||
self._with_authentication(
|
|
||||||
lambda origin, content, query, context:
|
|
||||||
handler.on_context_pdus_request(context)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
# This is when we receive a server-server Query
|
# This is when we receive a server-server Query
|
||||||
self.server.register_path(
|
self.server.register_path(
|
||||||
"GET",
|
"GET",
|
||||||
|
|
Loading…
Reference in New Issue