Skip to content

Commit a09ba2b

Browse files
authored
fix session arg is ignored with RequestsWebClient (#142)
1 parent ed6ec33 commit a09ba2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydantic_client/sync_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def _request(self, request_info: RequestInfo) -> Any:
3636

3737
request_params = self.before_request(request_params)
3838

39-
response = requests.request(**request_params, timeout=self.timeout)
39+
response = self.session.request(**request_params, timeout=self.timeout)
4040
response.raise_for_status()
4141

4242
if response_model is str:

0 commit comments

Comments
 (0)