Skip to content

Commit 085c4a6

Browse files
committed
FIX: support HTTPX 0.28
1 parent aa48168 commit 085c4a6

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
name: "✨ Set up Python"
3939
id: "setup-python"
4040
with:
41-
python-version: 3.x
41+
python-version: 3.13
4242
cache: poetry
4343

4444
- name: "📥 Install dependencies"

combadge/support/httpx/backends/async_.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ async def bound_method(self: BaseBoundService[HttpxBackend], *args: Any, **kwarg
4848
response: Response = await self.__combadge_backend__._client.request(
4949
request.get_method(),
5050
request.get_url_path(),
51-
json=request.payload,
52-
data=request.form_data,
53-
params=request.query_params,
54-
headers=request.http_headers,
51+
json=(request.payload or None),
52+
data=(request.form_data or None),
53+
params=(request.query_params or None),
54+
headers=(request.http_headers or None),
5555
)
5656
payload = self.__combadge_backend__._parse_payload(response)
5757
return signature.apply_response_markers(response, payload, response_type)

combadge/support/httpx/backends/sync.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ def bound_method(self: BaseBoundService[HttpxBackend], *args: Any, **kwargs: Any
4848
response: Response = self.__combadge_backend__._client.request(
4949
request.get_method(),
5050
request.get_url_path(),
51-
json=request.payload,
52-
data=request.form_data,
53-
params=request.query_params,
54-
headers=request.http_headers,
51+
json=(request.payload or None),
52+
data=(request.form_data or None),
53+
params=(request.query_params or None),
54+
headers=(request.http_headers or None),
5555
)
5656
payload = self.__combadge_backend__._parse_payload(response)
5757
return signature.apply_response_markers(response, payload, response_type)

0 commit comments

Comments
 (0)