Unverified Commit 3022791d authored by narugo1992's avatar narugo1992 Committed by GitHub
Browse files

Merge pull request #156 from deepghs/dev/url

dev(narugo): fix a bug on github URLs
parents db28bc3c ccc3bda4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -130,7 +130,7 @@ def _process_github_url_for_downloading(url: str) -> str:
    :return: Processed URL for downloading
    :rtype: str
    """
    return str(URLObject(url).with_query('raw=True'))
    return str(URLObject(url).add_query_param('raw', 'True'))


_HF_SUFFIX = {('hf', 'co'), ('huggingface', 'co')}