Socket
Socket
Sign inDemoInstall

connect

Package Overview
Dependencies
Maintainers
0
Versions
234
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

connect - npm Package Compare versions

Comparing version 1.1.4 to 1.1.5

2

lib/connect.js

@@ -29,3 +29,3 @@

exports.version = '1.1.4';
exports.version = '1.1.5';

@@ -32,0 +32,0 @@ /**

@@ -113,5 +113,4 @@

if ('function' == typeof fmt) {
stream.write(fmt(req, res, function(str){
return format(str, req, res);
}) + '\n', 'ascii');
var line = fmt(req, res, function(str){ return format(str, req, res); });
if (line) stream.write(line + '\n', 'ascii');
} else {

@@ -118,0 +117,0 @@ stream.write(format(fmt, req, res) + '\n', 'ascii');

@@ -190,3 +190,4 @@

// transfer
res.setHeader('Content-Type', type);
var charset = mime.charsets.lookup(type);
res.setHeader('Content-Type', type + (charset ? '; charset=' + charset : ''));
res.setHeader('Accept-Ranges', 'bytes');

@@ -193,0 +194,0 @@

{
"name": "connect",
"version": "1.1.4",
"version": "1.1.5",
"description": "High performance middleware framework",

@@ -5,0 +5,0 @@ "keywords": ["framework", "web", "middleware", "connect", "rack"],

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