We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We can combine -SkipHeaderValidation -ContentType "charset=utf-8" to avoid having to use a temp file to save a file. So all this
-SkipHeaderValidation -ContentType "charset=utf-8"
azure.databricks.cicd.tools/Private/Set-LocalNotebook.ps1
Lines 31 to 40 in 7869448
can be condensed into
$Response = (Invoke-RestMethod -Method Get -Uri $uri -Headers $Headers -SkipHeaderValidation -ContentType "charset=utf-8") -split '\n' | Select-Object -Skip 1 if ($Format -eq "SOURCE") { $Response = ($Response.replace("[^`r]`n", "`r`n") -Join "`r`n") } Write-Verbose "Creating file $LocalExportPath" New-Item -force -path $LocalExportPath -value $Response -type file
Which is what it used to look like.
Sadly SkipHeaderValidation is not availablein PowerShell 5. Ho hum.
SkipHeaderValidation
The text was updated successfully, but these errors were encountered:
No branches or pull requests
We can combine
-SkipHeaderValidation -ContentType "charset=utf-8"
to avoid having to use a temp file to save a file. So all thisazure.databricks.cicd.tools/Private/Set-LocalNotebook.ps1
Lines 31 to 40 in 7869448
can be condensed into
Which is what it used to look like.
Sadly
SkipHeaderValidation
is not availablein PowerShell 5. Ho hum.The text was updated successfully, but these errors were encountered: