We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bf7b40 commit 143e3d2Copy full SHA for 143e3d2
āsrc/lapidary/render/load.py
@@ -68,7 +68,7 @@ def is_url(self) -> bool:
68
class HttpDocumentHandler(DocumentHandler[str]):
69
def __init__(self, path: str) -> None:
70
super().__init__(path)
71
- self._client = httpx.AsyncClient()
+ self._client = httpx.AsyncClient(timeout=30.0)
72
self._cache: str | None = None
73
74
async def load(self) -> str:
@@ -84,7 +84,7 @@ def _file_name(self) -> str:
84
85
parsed = urlparse(self._path)
86
_, name = split(parsed.path)
87
- return name
+ return name or 'openapi.yaml'
88
89
async def save_to(self, target: anyio.Path) -> str:
90
text = await self.load()
0 commit comments