Skip to content

Commit

Permalink
Allow a port to be specified in cbHAR
Browse files Browse the repository at this point in the history
Allow a port to be specified in the options passed to the cbHAR function.
  • Loading branch information
jim-coffey committed Sep 20, 2015
1 parent cb83a9a commit 451d3e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -42,7 +42,7 @@ Proxy.prototype = {
if (typeof options === "string") {
options = { name: options};
}
this.start(function(err, data) {
this.start(options.port, function(err, data) {
if (!err) {
_this.startHAR(data.port, options.name, options.captureHeaders, options.captureContent, options.captureBinaryContent, function(err, resp) {
if (!err) {
Expand Down

0 comments on commit 451d3e5

Please sign in to comment.