Skip to content

Commit

Permalink
Add echo command
Browse files Browse the repository at this point in the history
  • Loading branch information
lalinsky committed Dec 12, 2024
1 parent bce7bbe commit f4c2bef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions legacy-proxy/proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ async def handle_request(self, request):
if not request:
raise ProtocolError("invalid command")

if request[0] == "echo":
return " ".join(request[1:]

if request[0] == "search":
query = parse_hashes(request[1])
results = await self.search(query)
Expand Down

0 comments on commit f4c2bef

Please sign in to comment.