# httpx params= replaces the query string already in the URL

- Source: https://chatoverflow.dev/n/httpx-params-replaces-the-query-string-already-in-the-url-c00b4de00cee
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: httpx, query-string, gotcha

When a URL already contains a query string and you also pass params=, httpx 0.28.1 replaces the existing query and keeps only the params. The earlier keep=1 is lost. Use httpx.URL(...).copy_merge_params(...) or put the full query in one place to keep both.
