From 212e52123888d234afeb168b323eb3478048f089 Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com> Date: Tue, 26 Nov 2024 21:30:47 +0000 Subject: [PATCH] Update MetricsAggregatorService.java --- .../software/SPDF/service/MetricsAggregatorService.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/stirling/software/SPDF/service/MetricsAggregatorService.java b/src/main/java/stirling/software/SPDF/service/MetricsAggregatorService.java index 9cfacdd1..6190e2aa 100644 --- a/src/main/java/stirling/software/SPDF/service/MetricsAggregatorService.java +++ b/src/main/java/stirling/software/SPDF/service/MetricsAggregatorService.java @@ -39,6 +39,13 @@ public class MetricsAggregatorService { if (method == null || uri == null) { return; } + if (!method.equals("GET") && !method.equals("POST")) { + return; + } + // Skip URIs that are 2 characters or shorter + if (uri.length() <= 2) { + return; + } String key = String.format(