Skip to content

Commit

Permalink
handle query params better in civitai client
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Dec 10, 2023
1 parent e200fe9 commit e91e084
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion api/onnx_web/convert/client/civitai.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ def download(

if self.token:
logger.debug("adding Civitai token authentication")
source = f"{source}?token={self.token}"
if "?" in source:
source = f"{source}&token={self.token}"
else:
source = f"{source}?token={self.token}"

return download_progress(source, cache_paths[0])

0 comments on commit e91e084

Please sign in to comment.