Skip to content

Fix: Skip empty lines when listening to OAuth callback#1706

Open
spacid wants to merge 1 commit intolibrespot-org:devfrom
spacid:fix/skip-empty-lines-oauth-callback
Open

Fix: Skip empty lines when listening to OAuth callback#1706
spacid wants to merge 1 commit intolibrespot-org:devfrom
spacid:fix/skip-empty-lines-oauth-callback

Conversation

@spacid
Copy link
Copy Markdown

@spacid spacid commented Apr 19, 2026

It is possible that a browser, after login, sends out empty lines through the socket before sending the auth code. This fix will skip the empty lines and will parse the first non-empty line.

This fixes 1705.

I am not sure if this fix is significant enough to be worth mentioning in CHANGELOG.md, so I omitted it.

It is possible that a browser, after login, sends out empty lines through
the socket before sending the auth code. This fix will skip the empty lines
and will parse the first non-empty line.
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.

Logging in via LibreWolf results in parse error in the OAuth callback

1 participant