Skip to content

bug: Windows: remote service and capture list updates and YouTube API calls fail since #2213 (libcurl has no zlib, but we ask for gzip) #2453

Closed

Description

@vpacher

Summary

On Windows, every HTTP call that #2213 pinned to CURLOPT_ACCEPT_ENCODING "gzip, deflate" fails when the server answers with gzip. The bundled libcurl is built without zlib, so it cannot decode gzip and returns CURLE_BAD_CONTENT_ENCODING (61).

Before #2213 the call sites set "". With "", libcurl advertises only the encodings it can decode. The Windows libcurl can decode none, so it sent no Accept-Encoding, the server answered uncompressed, and the calls worked.

Seen on a Windows 11 build (RelWithDebInfo, x64) of branch deps/2026-10-25-flatpak-srt-mbedtls (master 57606a8 + the Flatpak pin; Windows uses master's obs-deps 2026-10-25 from #2427, libcurl 8.23.0). The same applies to obs-deps 2026-08-26 (libcurl 8.12.1): it has no zlib either.

Evidence

The OBS log on startup (fresh profile):

[rtmp-services plugin] Remote update of URL "https://obsproject.com/obs2_update/rtmp-services/v5/package.json" failed: Unrecognized content encoding type
[win-capture plugin] Remote update of URL "https://obsproject.com/obs2_update/win-capture/v1/package.json" failed: Unrecognized content encoding type

curl_version() of the bundled DLLs:

obs-deps 2026-10-25  libcurl/8.23.0-DEV Schannel WinLDAP
obs-deps 2026-08-26  libcurl/8.12.1-DEV Schannel

No zlib/… in either (zlib.dll is in the package, but libcurl does not link it).

obsproject.com answers this request with gzip:

$ curl -sD - -o /dev/null -H 'Accept-Encoding: gzip, deflate' https://obsproject.com/obs2_update/rtmp-services/v5/package.json
HTTP/2 200
content-type: application/json
content-encoding: gzip

The bundled libcurl.dll (8.23.0), through ctypes, with each setting:

CURLOPT_ACCEPT_ENCODING URL HTTP CURLcode
"gzip, deflate" obsproject.com rtmp-services package.json 200 61 (bad content encoding)
"gzip, deflate" googleapis.com youtube/v3/channels 403 61
"gzip, deflate" api.twitch.tv helix/users 401 0
"gzip, deflate" api.github.com releases/latest 403 0
"" the same four same 0 for all

Twitch and GitHub do not compress these answers, so they are not affected now. They can be affected when they start to compress.

Affected call sites

  • shared/file-updater/file-updater/file-updater.c.h:118: the remote updates of rtmp-services (the service list) and win-capture (the game capture compatibility list). The lists stay at the versions in the package.
  • frontend/utility/RemoteTextThread.cpp.hpp:74 and :163 (RemoteTextThread, GetRemoteFile): the YouTube API wrappers, OAuth (Twitch, Restream), What's New and the auto-updater. The YouTube calls fail as shown above. The update check works today because GitHub does not compress that answer.

macOS and Linux are probably not affected: their libcurl has zlib. Not checked on those platforms.

Fix options

  1. Ask only for what libcurl can decode, without br: "gzip, deflate" when curl_version_info(CURLVERSION_NOW)->features & CURL_VERSION_LIBZ, else no encoding (NULL, or "identity"). This keeps the outgoing calls: stop advertising br on Accept-Encoding (CVE-2026-111497) #2213 protection (br is never advertised) and works with any libcurl. A test can check the header for a libcurl with and without zlib.
  2. Build libcurl with zlib in obs-deps (Windows). That fixes the bundled build, but a libcurl without zlib still fails with option 1 missing.

Option 1 in the three call sites (or one helper they share) looks right to me; option 2 is a separate improvement for obs-deps.

Acceptance criteria

Activity

  1. zackees commented on Oct 26, 2026

    @zackees
    Member

    Claiming: #2453, option 1. One shared helper picks the Accept-Encoding: gzip, deflate when curl_version_info() reports CURL_VERSION_LIBZ, else none (identity). The three call sites use it, so br is never advertised. RED: extend #2213's test with a libcurl-without-zlib case.

  2. added
    ready
    on Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ready

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions