Skip to content

Commit

Permalink
Stop lowercasing query keys
Browse files Browse the repository at this point in the history
We use the middleware that lowercases all query keys, so there's
no need to explicitly do so in the dependency.
  • Loading branch information
rra committed Jul 26, 2024
1 parent fb87bbe commit 5302443
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vocutouts/dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ async def get_params_dependency(
) -> list[UWSJobParameter]:
"""Parse GET parameters into job parameters for a cutout."""
return [
UWSJobParameter(parameter_id=k.lower(), value=v)
UWSJobParameter(parameter_id=k, value=v)
for k, v in request.query_params.items()
if k in {"id", "pos", "circle", "polygon"}
]
Expand Down

0 comments on commit 5302443

Please sign in to comment.