Skip to content

Commit

Permalink
Handle non set proxy path (when not using the cli) (#3894)
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore committed Jun 27, 2023
1 parent 9da5e43 commit 20aaf55
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion lib/plugins/graphite/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ export default class GraphitePlugin extends SitespeedioPlugin {
this.receivedTypesThatFireAnnotations = {};
this.make = context.messageMaker('graphite').make;
this.sendAnnotation = options_.sendAnnotation;
this.proxyPath = options_.proxyPath;
this.alias = {};
this.wptExtras = {};
this.usingBrowsertime = false;
Expand Down
2 changes: 1 addition & 1 deletion lib/plugins/graphite/send-annotation.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export function send(
const postOptions = {
hostname: options.graphite.webHost || options.graphite.host,
port: options.graphite.httpPort || 8080,
path: options.graphite.proxyPath + '/events/',
path: options.graphite.proxyPath || '' + '/events/',
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
Expand Down

0 comments on commit 20aaf55

Please sign in to comment.