From 37f1dab07bc77dfd466806d5289a9b890bf75ffa Mon Sep 17 00:00:00 2001 From: Chris Smalley Date: Mon, 20 Apr 2020 15:57:14 -0700 Subject: [PATCH] fix(headers): Metadata requestHeaders lookup should be case insensitive (#865) --- .../java/com/netflix/spinnaker/echo/api/events/Metadata.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/echo-api/src/main/java/com/netflix/spinnaker/echo/api/events/Metadata.java b/echo-api/src/main/java/com/netflix/spinnaker/echo/api/events/Metadata.java index fac10c1c3..ee16d393d 100644 --- a/echo-api/src/main/java/com/netflix/spinnaker/echo/api/events/Metadata.java +++ b/echo-api/src/main/java/com/netflix/spinnaker/echo/api/events/Metadata.java @@ -17,9 +17,9 @@ package com.netflix.spinnaker.echo.api.events; import java.util.Date; -import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.TreeMap; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; @@ -37,5 +37,6 @@ public class Metadata { private String application; private String _content_id; private Map attributes; - private Map> requestHeaders = new HashMap<>(); + private TreeMap> requestHeaders = + new TreeMap<>(String.CASE_INSENSITIVE_ORDER); }