Skip to content

Fix POST method in Pyodide HTTP session shim - #2270

Merged
martindurant merged 3 commits into
fsspec:masterfrom
adenzhou1350:codex/fix-pyodide-post-method
Oct 13, 2026
Merged

martindurant merged 3 commits into
fsspec:masterfrom
adenzhou1350:codex/fix-pyodide-post-method

Conversation

@adenzhou1350

Copy link
Copy Markdown
Contributor

RequestsSessionShim.post() forwards POST} to request(), which passes it to XMLHttpRequest.open(). Remove the stray brace.

Add a parameterized wrapper regression for all six methods, including URL, options and return-value forwarding. On unmodified master the POST case fails and the other five pass; with this fix the synchronous HTTP test module passes all 49 tests on native Windows CPython 3.14.3. Changelog included.

The regression captures the request() boundary; it does not execute a browser/Pyodide runtime or claim XHR integration coverage. AI-assisted and independently reproduced. Related open PR #960 adds a separate asynchronous JS filesystem; its diff does not cover this synchronous method typo.

@martindurant
martindurant merged commit 0cb0fc5 into fsspec:master Oct 13, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants