Skip to content

Commit

Permalink
MapR [SPARK-639] Default headers are adding two times
Browse files Browse the repository at this point in the history
  • Loading branch information
ekrivokonmapr authored Nov 11, 2019
1 parent 5eaced8 commit b0d5ee9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public void doFilter(ServletRequest request, ServletResponse response, FilterCha

if (customHeadersEnabled) {
if (customHeaderFile.exists()) {
CUSTOM_HEADER_PROPERTIES.forEach((k, v) -> httpServletResponse.addHeader((String) k, (String) v));
CUSTOM_HEADER_PROPERTIES.forEach((k, v) -> httpServletResponse.setHeader((String) k, (String) v));
} else {
String message = "Jetty headers configuration " + customHeaderFile.getAbsolutePath() +
" configured with spark.ui.headers in spark-defaults.conf" +
Expand Down

0 comments on commit b0d5ee9

Please sign in to comment.