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

appolo-agent

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

appolo-agent - npm Package Compare versions

Comparing version 6.0.2 to 6.0.3

10

lib/response.js

@@ -116,7 +116,2 @@ "use strict";

this.sending = true;
//check if need to gzip
if (this.useGzip) {
gzipResponse(this, data);
return;
}
let isEmptyStatusCode = statusEmpty[this.statusCode || (this.statusCode = 200)];

@@ -141,2 +136,7 @@ //send empty

}
//check if need to gzip
if (this.useGzip && data) {
gzipResponse(this, data);
return;
}
this.setHeader('Content-Length', Buffer.byteLength(data, 'utf8'));

@@ -143,0 +143,0 @@ this.req.method[0] == 'H' ? this.end() : this.end(data);

@@ -194,9 +194,4 @@ import http = require('http');

this.sending = true;
//check if need to gzip
if (this.useGzip) {
gzipResponse(this, data);
return;
}
let isEmptyStatusCode = statusEmpty[this.statusCode || (this.statusCode = 200)]
let isEmptyStatusCode = statusEmpty[this.statusCode || (this.statusCode = 200)];

@@ -221,2 +216,8 @@ //send empty

//check if need to gzip
if (this.useGzip && data) {
gzipResponse(this, data);
return;
}
this.setHeader('Content-Length', Buffer.byteLength(data as string, 'utf8'));

@@ -223,0 +224,0 @@

@@ -22,3 +22,3 @@ {

"main": "./index.js",
"version": "6.0.2",
"version": "6.0.3",
"license": "MIT",

@@ -25,0 +25,0 @@ "repository": {

Sorry, the diff of this file is not supported yet

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