Skip to content

Commit

Permalink
fix(headers): Metadata requestHeaders lookup should be case insensiti…
Browse files Browse the repository at this point in the history
…ve (#865)
  • Loading branch information
jonsie authored Apr 20, 2020
1 parent 5e2b673 commit 37f1dab
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -37,5 +37,6 @@ public class Metadata {
private String application;
private String _content_id;
private Map<String, String> attributes;
private Map<String, List<String>> requestHeaders = new HashMap<>();
private TreeMap<String, List<String>> requestHeaders =
new TreeMap<>(String.CASE_INSENSITIVE_ORDER);
}

0 comments on commit 37f1dab

Please sign in to comment.