Skip to content

Commit 57b5fe0

Browse files
suyask-msftCopilot
andauthored
Update src/PowerPlatform/Dataverse/core/http.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent cb4590a commit 57b5fe0

File tree

1 file changed

+2
-2
lines changed
  • src/PowerPlatform/Dataverse/core

1 file changed

+2
-2
lines changed

src/PowerPlatform/Dataverse/core/http.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ def request(self, method: str, url: str, **kwargs: Any) -> requests.Response:
5959
:rtype: requests.Response
6060
:raises requests.exceptions.RequestException: If all retry attempts fail.
6161
"""
62-
# Apply per-method default timeouts if not provided
63-
# Apply default timeout if not provided; fall back to per-method defaults
62+
# If no timeout is provided, use the user-specified default timeout if set;
63+
# otherwise, apply per-method defaults (120s for POST/DELETE, 10s for others).
6464
if "timeout" not in kwargs:
6565
if self.default_timeout is not None:
6666
kwargs["timeout"] = self.default_timeout

0 commit comments

Comments
 (0)