René's URL Explorer Experiment


Title: LOC-7549: decode gzip binary downloads and report the real binding version by 07souravkunda · Pull Request #71 · browserstack/browserstack-local-csharp · GitHub

Open Graph Title: LOC-7549: decode gzip binary downloads and report the real binding version by 07souravkunda · Pull Request #71 · browserstack/browserstack-local-csharp

X Title: LOC-7549: decode gzip binary downloads and report the real binding version by 07souravkunda · Pull Request #71 · browserstack/browserstack-local-csharp

Description: Summary Two fixes, so the C# binding can be moved onto the gzip-encoded binary download (about 3.3× less CDN egress): downloadBinary decodes Content-Encoding: gzip. It previously used WebClient.DownloadFile, which writes the response bytes as received, so a gzip-encoded binary would be saved compressed and fail to start. It now uses HttpClient with AutomaticDecompression = GZip | Deflate, the same client type fetchSourceUrl already uses, and streams the response to disk. The proxy handling is unchanged, and a partial file is deleted if the download fails. The binding reports its real version in the User-Agent. GenerateAssemblyInfo has been false since the 2020 SDK-style csproj migration (d14811c), and the library has no AssemblyInfo.cs. As a result, never reached the DLL, and every release has sent User-Agent: browserstack-local-csharp/0.0.0000.0000. In the 7 days to 2026-10-26, that was 5,462 of the 5,464 C# calls to /binary/api/v1/endpoint; the other 2 sent no version. With the attribute generated, this release reports e.g. browserstack-local-csharp/3.1.0001.0000. JIRA: https://browserstack.atlassian.net/browse/LOC-7549 Related: browserstack/local-service#706: hands latest_gzip to bindings that decode it. For C#, only when the reported version isn't 0.0. browserstack/local-binaries-for-deploy#73: publishes latest_gzip/. Why the version fix is needed latest_gzip/ objects are stored with Content-Encoding: gzip, and S3/CloudFront send gzip whatever Accept-Encoding the client sends. local-service must therefore give that path only to C# builds that contain fix 1. Every release in the field reports 0.0.0000.0000, so without fix 2 the new release would be indistinguishable from the old ones. With it: User-Agent local-service returns browserstack-local-csharp/0.0.0000.0000 (all current releases) latest_unzip (unchanged) browserstack-local-csharp / …/Unknown latest_unzip browserstack-local-csharp/3.1.0001.0000 and later (this change) latest_gzip, once the flag is on Not in this PR The version bump and release are left to the release branch, as usual. Testing dotnet test "BrowserStackLocal Unit Tests" (.NET 6, macOS): 35 passed, 0 failed. The new tests are: TestDownloadBinaryDecodesGzipContentEncoding: a local HttpListener serves a 2 MB binary with Content-Encoding: gzip, and the saved file must equal the original bytes; TestDownloadBinarySavesUncompressedResponseAsIs: a plain response is saved unchanged; TestDownloadBinaryFailureLeavesNoPartialFile: a 404 throws and leaves no file; TestBindingVersionComesFromTheAssembly: the assembly version isn't 0.0.0.0 and flows into GetVersionStringFromAssemblyEmbedded. Both fixes are covered by a failing test: restoring the original WebClient download makes the gzip test fail; restoring GenerateAssemblyInfo=false makes the version test fail. End-to-end: the patched downloadBinary() was pointed at a gzip-encoded staging copy of the 8.9 darwin binary on CloudFront (binaries/LOC-7549_gzip_poc/, 10,156,640 B on the wire). It saved 36,317,952 B with the prod SHA-256 (9091089b…), and --version printed BrowserStack Local version 8.9. Not yet run here: the Windows msbuild build and integration tests in CI. 🤖 Generated with Claude Code

Open Graph Description: Summary Two fixes, so the C# binding can be moved onto the gzip-encoded binary download (about 3.3× less CDN egress): downloadBinary decodes Content-Encoding: gzip. It previously used WebClient.Do...

X Description: Summary Two fixes, so the C# binding can be moved onto the gzip-encoded binary download (about 3.3× less CDN egress): downloadBinary decodes Content-Encoding: gzip. It previously used WebClient.Do...

Opengraph URL: https://github.com/browserstack/browserstack-local-csharp/pull/71

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.3

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:b4e09c81-d56d-3e6d-6e83-28b49b09b0fa
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8EAA:1F98:237D22B:2F20D4A:6B043E90
html-safe-nonce320e3b3c04e51ccfea7cb333c1c54a974b6723684a88c41efaec25eb5e51112c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RUFBOjFGOTg6MjM3RDIyQjoyRjIwRDRBOjZCMDQzRTkwIiwidmlzaXRvcl9pZCI6IjUyMzgxMDgzMTQ2MDQ0MjA3NTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac7c6c3d5d7e306edaa956e82cd9869d580687cf122ffeeb5822771d76743b712a
hovercard-subject-tagpull_request:5012532846
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/browserstack/browserstack-local-csharp/pull/71/files
twitter:imagehttps://avatars.githubusercontent.com/u/50537259?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/50537259?s=400&v=4
og:image:altSummary Two fixes, so the C# binding can be moved onto the gzip-encoded binary download (about 3.3× less CDN egress): downloadBinary decodes Content-Encoding: gzip. It previously used WebClient.Do...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None9185ccfefd80c1ff2d9ddcdb0cd2becf46b5a1efbbf30741a895e4bb8de25e64
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/browserstack/browserstack-local-csharp git https://github.com/browserstack/browserstack-local-csharp.git
octolytics-dimension-user_id1119453
octolytics-dimension-user_loginbrowserstack
octolytics-dimension-repository_id51923158
octolytics-dimension-repository_nwobrowserstack/browserstack-local-csharp
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id51923158
octolytics-dimension-repository_network_root_nwobrowserstack/browserstack-local-csharp
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release06dc448a76fe4751ac1db26524aefa3aa3e889a8
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/browserstack/browserstack-local-csharp/pull/71/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbrowserstack%2Fbrowserstack-local-csharp%2Fpull%2F71%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbrowserstack%2Fbrowserstack-local-csharp%2Fpull%2F71%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=browserstack%2Fbrowserstack-local-csharp
Reloadhttps://github.com/browserstack/browserstack-local-csharp/pull/71/files
Reloadhttps://github.com/browserstack/browserstack-local-csharp/pull/71/files
Reloadhttps://github.com/browserstack/browserstack-local-csharp/pull/71/files
browserstackhttps://github.com/browserstack
browserstack-local-csharphttps://github.com/browserstack/browserstack-local-csharp
Codehttps://github.com/browserstack/browserstack-local-csharp
Issues4 (4)https://github.com/browserstack/browserstack-local-csharp/issues
Pull requests10 (10)https://github.com/browserstack/browserstack-local-csharp/pulls
Actionshttps://github.com/browserstack/browserstack-local-csharp/actions
Projectshttps://github.com/browserstack/browserstack-local-csharp/projects
Security and qualityhttps://github.com/browserstack/browserstack-local-csharp/security
Insightshttps://github.com/browserstack/browserstack-local-csharp/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fbrowserstack%2Fbrowserstack-local-csharp%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fbrowserstack%2Fbrowserstack-local-csharp%2Fissues%2Fnew%2Fchoose
07souravkundahttps://github.com/07souravkunda
masterhttps://github.com/browserstack/browserstack-local-csharp/tree/master
LOC-7549/gzip-binary-downloadhttps://github.com/browserstack/browserstack-local-csharp/tree/LOC-7549/gzip-binary-download
Conversation 1 https://github.com/browserstack/browserstack-local-csharp/pull/71
Commits 1 https://github.com/browserstack/browserstack-local-csharp/pull/71/commits
Checks 5 https://github.com/browserstack/browserstack-local-csharp/pull/71/checks
Files changed https://github.com/browserstack/browserstack-local-csharp/pull/71/files
Please reload this pagehttps://github.com/browserstack/browserstack-local-csharp/pull/71/files
LOC-7549: decode gzip binary downloads and report the real binding version https://github.com/browserstack/browserstack-local-csharp/pull/71/files#top
Show all changes 1 commit https://github.com/browserstack/browserstack-local-csharp/pull/71/files
fb1e597 LOC-7549: decode gzip binary downloads and report the real binding ve… 07souravkunda Oct 26, 2026 https://github.com/browserstack/browserstack-local-csharp/pull/71/commits/fb1e5972fc9ace9f572e25de7592e6dcb7ec87d7
Clear filters https://github.com/browserstack/browserstack-local-csharp/pull/71/files
Please reload this pagehttps://github.com/browserstack/browserstack-local-csharp/pull/71/files
Please reload this pagehttps://github.com/browserstack/browserstack-local-csharp/pull/71/files
BrowserStackTunnelTests.cs https://github.com/browserstack/browserstack-local-csharp/pull/71/files#diff-5fa949e06bd71ca59e734fcf650e00b0424cf018cb934f39cf6aebfb23c106c1
LocalTests.cs https://github.com/browserstack/browserstack-local-csharp/pull/71/files#diff-076f7b96631edb8bca10f8a91a8519713c0935d46269228a15030bab966694ec
BrowserStackLocal.csproj https://github.com/browserstack/browserstack-local-csharp/pull/71/files#diff-07409a2a3ac2edea1ca5ef8da4b67bf2bd0f2b0c83c2df386b117ef360925bb9
BrowserStackTunnel.cs https://github.com/browserstack/browserstack-local-csharp/pull/71/files#diff-03f0828d538a28f22de4445da4e0832af6236b2ed7060736ae562cd4c14aa5ba
https://github.com/browserstack/browserstack-local-csharp/blob/master/CODEOWNERS#L1
BrowserStackLocal/BrowserStackLocal Unit Tests/BrowserStackTunnelTests.cshttps://github.com/browserstack/browserstack-local-csharp/pull/71/files#diff-5fa949e06bd71ca59e734fcf650e00b0424cf018cb934f39cf6aebfb23c106c1
View file https://github.com/browserstack/browserstack-local-csharp/blob/fb1e5972fc9ace9f572e25de7592e6dcb7ec87d7/BrowserStackLocal/BrowserStackLocal%20Unit%20Tests/BrowserStackTunnelTests.cs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/browserstack/browserstack-local-csharp/pull/71/{{ revealButtonHref }}
https://github.com/browserstack/browserstack-local-csharp/pull/71/files#diff-5fa949e06bd71ca59e734fcf650e00b0424cf018cb934f39cf6aebfb23c106c1
https://github.com/browserstack/browserstack-local-csharp/pull/71/files#diff-5fa949e06bd71ca59e734fcf650e00b0424cf018cb934f39cf6aebfb23c106c1
https://github.com/browserstack/browserstack-local-csharp/pull/71/files#diff-5fa949e06bd71ca59e734fcf650e00b0424cf018cb934f39cf6aebfb23c106c1
https://github.com/browserstack/browserstack-local-csharp/blob/master/CODEOWNERS#L1
BrowserStackLocal/BrowserStackLocal Unit Tests/LocalTests.cshttps://github.com/browserstack/browserstack-local-csharp/pull/71/files#diff-076f7b96631edb8bca10f8a91a8519713c0935d46269228a15030bab966694ec
View file https://github.com/browserstack/browserstack-local-csharp/blob/fb1e5972fc9ace9f572e25de7592e6dcb7ec87d7/BrowserStackLocal/BrowserStackLocal%20Unit%20Tests/LocalTests.cs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/browserstack/browserstack-local-csharp/pull/71/{{ revealButtonHref }}
https://github.com/browserstack/browserstack-local-csharp/pull/71/files#diff-076f7b96631edb8bca10f8a91a8519713c0935d46269228a15030bab966694ec
https://github.com/browserstack/browserstack-local-csharp/pull/71/files#diff-076f7b96631edb8bca10f8a91a8519713c0935d46269228a15030bab966694ec
https://github.com/browserstack/browserstack-local-csharp/blob/master/CODEOWNERS#L1
BrowserStackLocal/BrowserStackLocal/BrowserStackLocal.csprojhttps://github.com/browserstack/browserstack-local-csharp/pull/71/files#diff-07409a2a3ac2edea1ca5ef8da4b67bf2bd0f2b0c83c2df386b117ef360925bb9
View file https://github.com/browserstack/browserstack-local-csharp/blob/fb1e5972fc9ace9f572e25de7592e6dcb7ec87d7/BrowserStackLocal/BrowserStackLocal/BrowserStackLocal.csproj
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/browserstack/browserstack-local-csharp/pull/71/{{ revealButtonHref }}
https://github.com/browserstack/browserstack-local-csharp/pull/71/files#diff-07409a2a3ac2edea1ca5ef8da4b67bf2bd0f2b0c83c2df386b117ef360925bb9
https://github.com/browserstack/browserstack-local-csharp/pull/71/files#diff-07409a2a3ac2edea1ca5ef8da4b67bf2bd0f2b0c83c2df386b117ef360925bb9
https://github.com/browserstack/browserstack-local-csharp/blob/master/CODEOWNERS#L1
BrowserStackLocal/BrowserStackLocal/BrowserStackTunnel.cshttps://github.com/browserstack/browserstack-local-csharp/pull/71/files#diff-03f0828d538a28f22de4445da4e0832af6236b2ed7060736ae562cd4c14aa5ba
View file https://github.com/browserstack/browserstack-local-csharp/blob/fb1e5972fc9ace9f572e25de7592e6dcb7ec87d7/BrowserStackLocal/BrowserStackLocal/BrowserStackTunnel.cs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/browserstack/browserstack-local-csharp/pull/71/{{ revealButtonHref }}
https://github.com/browserstack/browserstack-local-csharp/pull/71/files#diff-03f0828d538a28f22de4445da4e0832af6236b2ed7060736ae562cd4c14aa5ba
https://github.com/browserstack/browserstack-local-csharp/pull/71/files#diff-03f0828d538a28f22de4445da4e0832af6236b2ed7060736ae562cd4c14aa5ba
Please reload this pagehttps://github.com/browserstack/browserstack-local-csharp/pull/71/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.