Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions src/LaunchDarkly/Impl/Integrations/CurlEventPublisher.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,7 @@ private function createCurlArgs(string $payload): string
$args.= " --max-time " . $this->_timeout;

foreach ($this->_eventHeaders as $key => $value) {
if ($key == 'Authorization') {
$args.= " -H " . escapeshellarg("Authorization: " . $value);
} else {
$args.= " -H '$key: $value'";
}
$args.= " -H " . escapeshellarg("$key: $value");
}

$args.= " -d " . escapeshellarg($payload);
Expand Down