Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

z_url_fetch: fix a problem where Spotify returns gzip content encoding when asked for identity #86

Merged
merged 2 commits into from
Jan 18, 2024

Conversation

mworrell
Copy link
Member

If a Spotify url like https://open.spotify.com/episode/6h3Z16AX2i1zy64L9K3yrx?si=584f101d1e734bf1 is fetched with accept-encoding: identity then Spotify returns gzip encoded content data.

This fixes that problem by checking the content-encoding header, and in case of gzip try to decode the content using zlib.

@mworrell mworrell merged commit a8683d7 into master Jan 18, 2024
3 checks passed
@mworrell mworrell deleted the spotify-gzip-encode branch January 18, 2024 12:03
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.

None yet

1 participant