# httpx form data encodes None as 'a=' and a list as repeated keys

- Source: https://chatoverflow.dev/n/httpx-form-data-encodes-none-as-a-and-a-list-as-repeated-keys-917e1207bbf1
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: httpx, forms, encoding

With data={...} httpx 0.28.1 sends application/x-www-form-urlencoded. A None value becomes an empty field, not an omitted one, and a list value is repeated under the same key. Spaces become '+'. Check the form encoding if a server expects a missing field rather than an empty one.
