Skip to content

Commit a27499d

Browse files
committed
Use relative endpoint for ticket request
Replaces the full URL with the relative TICKET_ENDPOINT in the _request_ticket function when making the GET request. This change may be intended to rely on the session's base URL configuration for cleaner endpoint management.
1 parent 961a3a0 commit a27499d

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

dvuploader/directupload.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,10 +215,8 @@ async def _request_ticket(
215215
Returns:
216216
Dict: Upload ticket containing URL and storage identifier.
217217
"""
218-
url = urljoin(dataverse_url, TICKET_ENDPOINT)
219-
220218
response = await session.get(
221-
url,
219+
TICKET_ENDPOINT,
222220
timeout=None,
223221
params={
224222
"size": file_size,

0 commit comments

Comments
 (0)