New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

urllib

Package Overview
Dependencies
Maintainers
3
Versions
240
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

urllib - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

5

History.md
2.0.3 / 2015-03-08
==================
* fix: auto decode gzip content
2.0.2 / 2014-11-01

@@ -3,0 +8,0 @@ ==================

10

lib/urllib.js

@@ -394,8 +394,4 @@ /**!

var enableGzip = args.gzip === true;
if (enableGzip) {
var acceptEncoding = options.headers['Accept-Encoding'] || options.headers['accept-encoding'];
if (acceptEncoding) {
enableGzip = false; // user want to handle response content decode themself
} else {
if (args.gzip) {
if (!options.headers['Accept-Encoding'] || !options.headers['accept-encoding']) {
options.headers['Accept-Encoding'] = 'gzip';

@@ -407,3 +403,3 @@ }

var encoding = res.headers['content-encoding'];
if (body.length === 0 || !enableGzip) {
if (body.length === 0) {
return cb(null, body, encoding);

@@ -410,0 +406,0 @@ }

{
"name": "urllib",
"version": "2.0.2",
"version": "2.0.3",
"description": "Help in opening URLs (mostly HTTP) in a complex world — basic and digest authentication, redirections, cookies and more.",

@@ -5,0 +5,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc