Skip to content

Replace http.client wstoken workaround with requests - #157

Merged
D-VR merged 1 commit into
masterfrom
simplify-moodle-wstoken-request
Jul 5, 2026
Merged

D-VR merged 1 commit into
masterfrom
simplify-moodle-wstoken-request

Conversation

@D-VR

@D-VR D-VR commented Jul 5, 2026

Copy link
Copy Markdown
Collaborator

The mobile-launch endpoint redirects to a moodlemobile:// app scheme. Following that redirect makes requests look for a connection adapter for the scheme and raise InvalidSchema. Passing allow_redirects=False lets requests return the 3xx so we read the Location header ourselves

The mobile-launch endpoint redirects to a moodlemobile:// app scheme.
Following that redirect makes requests look for a connection adapter for
the scheme and raise InvalidSchema. Passing allow_redirects=False
lets requests return the 3xx so we read the Location header ourselves
@D-VR D-VR added the maintenance Chore or refactor label Jul 5, 2026
@D-VR
D-VR merged commit 46fdb93 into master Jul 5, 2026
4 checks passed
@D-VR
D-VR deleted the simplify-moodle-wstoken-request branch July 5, 2026 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Chore or refactor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant