File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/LaunchDarkly/Impl/Integrations Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments