Comparing version 2.4.1 to 2.4.2
@@ -135,3 +135,13 @@ 'use strict' | ||
const req = (opts.protocol === 'http:' ? http : https).request(opts, (res) => { | ||
let req | ||
try { | ||
req = (opts.protocol === 'http:' ? http : https).request(opts) | ||
} catch (err) { | ||
// To catch e.g. ERR_HTTP_INVALID_HEADER_VALUE | ||
callback(err) | ||
return | ||
} | ||
req.once('response', (res) => { | ||
const headers = res.headers | ||
@@ -138,0 +148,0 @@ const contentType = headers['content-type'] |
{ | ||
"name": "lento", | ||
"version": "2.4.1", | ||
"version": "2.4.2", | ||
"description": "Streaming client for Presto HTTP protocol v1", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39542
656