Skip to content

Commit 60121a3

Browse files
committed
adjustment
1 parent d7efa8f commit 60121a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/LaunchDarkly/Impl/Integrations/CurlEventPublisher.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,15 @@ private function createPowershellArgs(string $payloadFile): string
111111
foreach ($this->_eventHeaders as $key => $value) {
112112
$escapedKey = str_replace("'", "''", $key);
113113
$escapedValue = str_replace("'", "''", strval($value));
114-
$headerString .= sprintf('"%s"="%s";', $escapedKey, $escapedValue);
114+
$headerString .= sprintf("'%s'='%s';", $escapedKey, $escapedValue);
115115
}
116116

117117
$scheme = $this->_ssl ? "https://" : "http://";
118118
$args = " Invoke-WebRequest";
119119
$args.= " -Method POST";
120120
$args.= " -UseBasicParsing";
121121
$args.= " -InFile '$payloadFile'";
122-
$args.= " -H '@{" . $headerString . "}'";
122+
$args.= " -H @{" . $headerString . "}";
123123
$args.= " -Uri " . escapeshellarg($scheme . $this->_host . ":" . $this->_port . $this->_path . "/bulk");
124124
$args.= " ; Remove-Item '$payloadFile'";
125125

0 commit comments

Comments
 (0)