Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Change protocol name
This specifically for pandas, which looks for URLs starting with "http" to
pass to requests
martindurant committed Mar 7, 2025
commit 4a4a44be66ddbdbe24f108a49de714dd626fb786
6 changes: 3 additions & 3 deletions fsspec/implementations/http_sync.py
Original file line number Diff line number Diff line change
@@ -201,7 +201,7 @@ class HTTPFileSystem(AbstractFileSystem):
you are testing pyodide/pyscript integration***
"""

protocol = ("http", "https", "http_sync", "https_sync")
protocol = ("http", "https", "sync_http", "sync_https")
sep = "/"

def __init__(
@@ -916,8 +916,8 @@ def _file_info(url, session, size_policy="head", **kwargs):
def register():
register_implementation("http", HTTPFileSystem, clobber=True)
register_implementation("https", HTTPFileSystem, clobber=True)
register_implementation("http_sync", HTTPFileSystem, clobber=True)
register_implementation("https_sync", HTTPFileSystem, clobber=True)
register_implementation("sync_http", HTTPFileSystem, clobber=True)
register_implementation("sync_https", HTTPFileSystem, clobber=True)


register()