Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: DataDog/system-tests
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 3558be3deb8812a19c9c6588f497e9b562d94ded
Choose a base ref
..
head repository: DataDog/system-tests
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: cef509b8a3b86c563e352417ad0f15ba13828140
Choose a head ref
Showing with 3 additions and 3 deletions.
  1. +3 −3 utils/build/docker/python/fastapi/main.py
6 changes: 3 additions & 3 deletions utils/build/docker/python/fastapi/main.py
Original file line number Diff line number Diff line change
@@ -512,7 +512,7 @@ async def view_iast_source_header_value(table: typing.Annotated[str, Header()] =

@app.get("/iast/source/parametername/test", response_class=PlainTextResponse)
async def view_iast_source_parametername_get(request: Request):
param = [key for key in request.query_params.keys() if key == "user"]
param = [key for key in request.query_params if key == "user"]
if param:
_sink_point(id=param[0])
return "OK"
@@ -521,8 +521,8 @@ async def view_iast_source_parametername_get(request: Request):

@app.post("/iast/source/parametername/test", response_class=PlainTextResponse)
async def view_iast_source_parametername_post(request: Request):
form_data = await request.form()
param = [key for key in form_data.keys() if key == "user"]
json_body = await request.form()
param = [key for key in json_body if key == "user"]
if param:
_sink_point(id=param[0])
return "OK"