Skip to content

Commit

Permalink
fix: Fix error with headers in webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
JCHacking authored Apr 15, 2024
1 parent 55268f0 commit 4cea47f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ public void postNotification(
String url = prepareUrl(notifType, statusNotifier);

Map<String, String> 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();
Expand Down

0 comments on commit 4cea47f

Please sign in to comment.