Skip to content

Commit

Permalink
build.ps1 - Change from using UrlEncode to EscapeDataString
Browse files Browse the repository at this point in the history
- Spotify download server is now case sensitive, the + in the file name needs to be encoded to B instead of lowercase b
  • Loading branch information
amaitland committed Feb 12, 2025
1 parent f5efbad commit e5c944b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,8 @@ function DownloadCefBinaryAndUnzip()
$LocalFile = Join-Path $WorkingDir $CefFileName
if (-not (Test-Path $LocalFile))
{
$UriEncodedFileName = [System.Web.HttpUtility]::UrlEncode($CefFileName).Replace("%2b", "%2B")
# The spotify build server uses case sensitive urls now, need to use EscapeDataString instead of UrlEncode
$UriEncodedFileName = [System.Uri]::EscapeDataString($CefFileName)
$FullUri = $CefBuildServerUrl + $UriEncodedFileName
Write-Diagnostic "Downloading $FullUri this will take a while as the file is $CefFileSize MB."

Expand Down

0 comments on commit e5c944b

Please sign in to comment.