Skip to content

Commit

Permalink
Rollback RC changes
Browse files Browse the repository at this point in the history
  • Loading branch information
bwoebi committed Jul 23, 2024
1 parent bc5a537 commit 8dba4dc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions utils/proxy/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,15 +234,14 @@ def _modify_response(self, flow):
request_content = json.loads(flow.request.content)
runtime_id = request_content["client"]["client_tracer"]["runtime_id"]

payload = self.rc_api_command
if runtime_id in self.rc_api_runtime_ids_applied:
# this runtime id has already been applied
payload = "{}"
return

logger.info(f" => modifying rc response for runtime ID {runtime_id}")

flow.response.status_code = 200
flow.response.content = payload
flow.response.content = self.rc_api_command

self.rc_api_runtime_ids_applied.add(runtime_id)
elif self.rc_api_sequential_commands is not None:
Expand Down

0 comments on commit 8dba4dc

Please sign in to comment.