Skip to content

Commit

Permalink
Fix invalid HTTP header
Browse files Browse the repository at this point in the history
  • Loading branch information
FlowingSPDG authored Jun 23, 2024
1 parent 2b4870b commit a1ed99b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PublishEvents.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public async Task SendEventAsync(MatchZyEvent @event)

Log($"[SendEventAsync] SENDING DATA: {jsonString}");

if (!string.IsNullOrEmpty(matchConfig.RemoteLogHeaderKey))
if (!string.IsNullOrEmpty(matchConfig.RemoteLogHeaderKey) && !string.IsNullOrEmpty(matchConfig.RemoteLogHeaderValue))
{
httpClient.DefaultRequestHeaders.Add(matchConfig.RemoteLogHeaderKey, matchConfig.RemoteLogHeaderValue);
}
Expand Down

0 comments on commit a1ed99b

Please sign in to comment.