From b4c80828e78e1941282566663d42a4c0342561d6 Mon Sep 17 00:00:00 2001 From: soulgalore Date: Tue, 27 Jun 2023 15:45:31 +0200 Subject: [PATCH] Handle non set proxy path (when not using the cli) --- lib/plugins/graphite/index.js | 1 - lib/plugins/graphite/send-annotation.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/plugins/graphite/index.js b/lib/plugins/graphite/index.js index 921e2b1290..49403fc44b 100644 --- a/lib/plugins/graphite/index.js +++ b/lib/plugins/graphite/index.js @@ -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; diff --git a/lib/plugins/graphite/send-annotation.js b/lib/plugins/graphite/send-annotation.js index 2f3d1b747b..66dc6dbc13 100644 --- a/lib/plugins/graphite/send-annotation.js +++ b/lib/plugins/graphite/send-annotation.js @@ -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',