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

https-proxy-agent

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

https-proxy-agent - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

5

History.md

@@ -0,1 +1,6 @@

0.2.0 / 2013-09-03
==================
- Add initial "Proxy-Authorization" Basic authentication support
0.1.0 / 2013-07-21

@@ -2,0 +7,0 @@ ==================

10

https-proxy-agent.js

@@ -81,3 +81,3 @@

function ondata (b) {
console.log(b.length, b, b.toString());
//console.log(b.length, b, b.toString());
// TODO: verify that the socket is properly connected, check response...

@@ -106,4 +106,8 @@

var hostname = opts.host + ':' + opts.port;
var msg = 'CONNECT ' + hostname + ' HTTP/1.1\r\n' +
'Host: ' + hostname + '\r\n' +
var msg = 'CONNECT ' + hostname + ' HTTP/1.1\r\n';
var auth = this.proxy.auth;
if (auth) {
msg += 'Proxy-Authorization: Basic ' + new Buffer(auth).toString('base64') + '\r\n';
}
msg += 'Host: ' + hostname + '\r\n' +
'\r\n';

@@ -110,0 +114,0 @@ socket.write(msg);

{
"name": "https-proxy-agent",
"version": "0.1.0",
"version": "0.2.0",
"description": "An HTTP(s) proxy `http.Agent` implementation for HTTPS",

@@ -5,0 +5,0 @@ "main": "https-proxy-agent.js",

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