Comparing version 0.4.2 to 0.4.3
# Change Log | ||
**0.4.3** | ||
- Support HTTP proxies. ([#32](https://github.com/rollbar/node_rollbar/pull/32)) | ||
**0.4.2** | ||
@@ -4,0 +7,0 @@ - Fixed a bug that caused the library to crash if a request was provided but did not have a `headers` object. ([#31](https://github.com/rollbar/node_rollbar/pull/31)) |
@@ -14,3 +14,4 @@ var url = require('url'); | ||
endpoint: exports.endpoint, | ||
verbose: true | ||
verbose: true, | ||
proxy: null | ||
}; | ||
@@ -34,2 +35,3 @@ | ||
SETTINGS.transport = {http: http, https: https}[SETTINGS.protocol]; | ||
SETTINGS.proxy = options.proxy; | ||
@@ -86,2 +88,10 @@ var portCheck = SETTINGS.endpointOpts.host.split(':'); | ||
} | ||
if (SETTINGS.proxy) { | ||
opts.path = SETTINGS.protocol + '://' + opts.host + opts.path; | ||
opts.host = SETTINGS.proxy.host; | ||
opts.port = SETTINGS.proxy.port; | ||
transport = http; | ||
} | ||
var req = transport.request(opts, function(resp) { | ||
@@ -88,0 +98,0 @@ var respData = []; |
@@ -13,3 +13,3 @@ { | ||
], | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"repository": "git://github.com/rollbar/node_rollbar.git", | ||
@@ -16,0 +16,0 @@ "author": "Rollbar, Inc. <support@rollbar.com>", |
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
63808
1398