René's URL Explorer Experiment


Title: Gzip decoder too strict · Issue #5761 · nodejs/node · GitHub

Open Graph Title: Gzip decoder too strict · Issue #5761 · nodejs/node

X Title: Gzip decoder too strict · Issue #5761 · nodejs/node

Description: Version: 5.9.0 Platform: Windows 7 64 bit Subsystem: zlib While talking to a web server on an embedded device, asking for gzip content encoding I get responses that are considered OK by all major browsers (Chrome, Firefox, IE) and also c...

Open Graph Description: Version: 5.9.0 Platform: Windows 7 64 bit Subsystem: zlib While talking to a web server on an embedded device, asking for gzip content encoding I get responses that are considered OK by all major b...

X Description: Version: 5.9.0 Platform: Windows 7 64 bit Subsystem: zlib While talking to a web server on an embedded device, asking for gzip content encoding I get responses that are considered OK by all major b...

Opengraph URL: https://github.com/nodejs/node/issues/5761

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Gzip decoder too strict","articleBody":"- **Version**: 5.9.0\n- **Platform**: Windows 7 64 bit\n- **Subsystem**: zlib\n\nWhile talking to a web server on an embedded device, asking for gzip content encoding I get responses that are considered OK by all major browsers (Chrome, Firefox, IE) and also cURL. However, the Node `zlib`module considers the gzip stream incomplete and throws an error. The error returned by the `zlib` module reads: `Error: unexpected end of file at Zlib._handle.onerror (zlib.js:363:17)`. Inspecting the gzip response it seems to be missing a footer detailing the CRC and the length of the compressed data.\n\nA small program that reproduces this with an actual response from the device in it:\n\n``` javascript\nvar buffer = require(\"buffer\");\nvar stream = require(\"stream\");\nvar fs = require(\"fs\");\nvar zlib = require(\"zlib\");\n\nvar s = new stream.Readable();\nvar b = new buffer.Buffer([\n    0x1F, 0x8B, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0B, 0xB2, 0xB1,\n    0xAF, 0xC8, 0xCD, 0x51, 0x28, 0x4B, 0x2D, 0x2A, 0xCE, 0xCC, 0xCF, 0xB3,\n    0x55, 0x32, 0xD4, 0x33, 0x50, 0x52, 0x48, 0xCD, 0x4B, 0xCE, 0x4F, 0xC9,\n    0xCC, 0x4B, 0xB7, 0x55, 0x2A, 0x2D, 0x49, 0xD3, 0xB5, 0x50, 0x52, 0xB0,\n    0xB7, 0xE3, 0xE5, 0xB2, 0x49, 0xCC, 0x49, 0x2C, 0xCA, 0x2D, 0x56, 0x48,\n    0x4E, 0x4C, 0xCE, 0x48, 0xCD, 0x4C, 0xB1, 0x55, 0xB2, 0x54, 0x52, 0x50,\n    0xD0, 0x07, 0x4A, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF\n]);\n\ns.push(b);\ns.push(null);\ns.pipe(zlib.createGunzip()).pipe(process.stdout);\n```\n\nWould it be possible to make the Node gzip decoder more lenient and behave more like all major browsers and cURL do?\n","author":{"url":"https://github.com/peterkooijmans","@type":"Person","name":"peterkooijmans"},"datePublished":"2016-03-17T16:31:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/5761/node/issues/5761"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:9f54c301-6d25-46cc-fc90-e09a2caf3ebe
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCD46:E2378:16ABF6A:1F436D1:6A4EA4A7
html-safe-nonce439d23f2ce224b150ebfcdb86e3ca067281873c6831ea722371d6b9a481e5f16
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRDQ2OkUyMzc4OjE2QUJGNkE6MUY0MzZEMTo2QTRFQTRBNyIsInZpc2l0b3JfaWQiOiI4OTUyNTk2Nzc4OTQ0NzM0Mzc2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac47fb2807ed639734c950bcd1db905678ae64cac8efcaf4e56d3ed2c6f93089a6
hovercard-subject-tagissue:141635701
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/5761/issue_layout
twitter:imagehttps://opengraph.githubassets.com/7f4bd64ef82f4493e7e479c7b6e12d95b6f23b98dc18967a3c2d2262a21b2d32/nodejs/node/issues/5761
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7f4bd64ef82f4493e7e479c7b6e12d95b6f23b98dc18967a3c2d2262a21b2d32/nodejs/node/issues/5761
og:image:altVersion: 5.9.0 Platform: Windows 7 64 bit Subsystem: zlib While talking to a web server on an embedded device, asking for gzip content encoding I get responses that are considered OK by all major b...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepeterkooijmans
hostnamegithub.com
expected-hostnamegithub.com
None41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c
turbo-cache-controlno-preview
go-importgithub.com/nodejs/node git https://github.com/nodejs/node.git
octolytics-dimension-user_id9950313
octolytics-dimension-user_loginnodejs
octolytics-dimension-repository_id27193779
octolytics-dimension-repository_nwonodejs/node
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id27193779
octolytics-dimension-repository_network_root_nwonodejs/node
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee6a744804e8e70f97b4d5a18a94dcc63db22f97a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/nodejs/node/issues/5761#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F5761
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F5761
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/issues/5761
Reloadhttps://github.com/nodejs/node/issues/5761
Reloadhttps://github.com/nodejs/node/issues/5761
Please reload this pagehttps://github.com/nodejs/node/issues/5761
nodejs https://github.com/nodejs
nodehttps://github.com/nodejs/node
Please reload this pagehttps://github.com/nodejs/node/issues/5761
Notifications https://github.com/login?return_to=%2Fnodejs%2Fnode
Fork 36k https://github.com/login?return_to=%2Fnodejs%2Fnode
Star 118k https://github.com/login?return_to=%2Fnodejs%2Fnode
Code https://github.com/nodejs/node
Issues 1.3k https://github.com/nodejs/node/issues
Pull requests 964 https://github.com/nodejs/node/pulls
Actions https://github.com/nodejs/node/actions
Projects https://github.com/nodejs/node/projects
Security and quality 0 https://github.com/nodejs/node/security
Insights https://github.com/nodejs/node/pulse
Code https://github.com/nodejs/node
Issues https://github.com/nodejs/node/issues
Pull requests https://github.com/nodejs/node/pulls
Actions https://github.com/nodejs/node/actions
Projects https://github.com/nodejs/node/projects
Security and quality https://github.com/nodejs/node/security
Insights https://github.com/nodejs/node/pulse
Gzip decoder too stricthttps://github.com/nodejs/node/issues/5761#top
questionIssues that look for answers.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22question%22
zlibIssues and PRs related to the zlib subsystem.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22zlib%22
https://github.com/peterkooijmans
peterkooijmanshttps://github.com/peterkooijmans
on Mar 17, 2016https://github.com/nodejs/node/issues/5761#issue-141635701
questionIssues that look for answers.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22question%22
zlibIssues and PRs related to the zlib subsystem.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22zlib%22
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

Viewport: width=device-width


URLs of crawlers that visited me.