diff --git a/task-status-listener/src/main/java/com/netflix/conductor/contribs/listener/RestClientManager.java b/task-status-listener/src/main/java/com/netflix/conductor/contribs/listener/RestClientManager.java index 2ef129172..801417d7b 100644 --- a/task-status-listener/src/main/java/com/netflix/conductor/contribs/listener/RestClientManager.java +++ b/task-status-listener/src/main/java/com/netflix/conductor/contribs/listener/RestClientManager.java @@ -188,7 +188,8 @@ public void postNotification( String url = prepareUrl(notifType, statusNotifier); Map headers = new HashMap<>(); - headers.put(config.getHeaderPrefer(), config.getHeaderPreferValue()); + if (config.getHeaderPrefer() != "" && config.getHeaderPreferValue() != "") + headers.put(config.getHeaderPrefer(), config.getHeaderPreferValue()); HttpPost request = createPostRequest(url, data, headers); long start = System.currentTimeMillis();