Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

urllib

Package Overview
Dependencies
Maintainers
1
Versions
222
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 0.3.3 to 0.3.4

6

History.md
0.3.4 / 2013-03-06
==================
* fixed #8 auto add application/x-www-form-urlencoded
* fixed existsSync for node < 0.8
0.3.3 / 2012-12-14

@@ -3,0 +9,0 @@ ==================

8

lib/urllib.js

@@ -99,5 +99,11 @@ /**

body = qs.stringify(body);
if (method === 'POST' || method === 'PUT') {
// auto add application/x-www-form-urlencoded when using urlencode form request
if (!options.headers['Content-Type'] && !options.headers['content-type']) {
options.headers['Content-Type'] = 'application/x-www-form-urlencoded';
}
}
}
}
if (method === 'GET' && body) {
if ((method === 'GET' || method === 'HEAD') && body) {
options.path += (info.query ? '' : '?') + body;

@@ -104,0 +110,0 @@ body = null;

2

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

@@ -5,0 +5,0 @@ "keywords": [ "urllib", "http", "urlopen", "curl", "wget" ],

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