Skip to content

Commit e5c944b

Browse files
committed
build.ps1 - Change from using UrlEncode to EscapeDataString
- Spotify download server is now case sensitive, the + in the file name needs to be encoded to B instead of lowercase b
1 parent f5efbad commit e5c944b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: build.ps1

+2-1
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,8 @@ function DownloadCefBinaryAndUnzip()
535535
$LocalFile = Join-Path $WorkingDir $CefFileName
536536
if (-not (Test-Path $LocalFile))
537537
{
538-
$UriEncodedFileName = [System.Web.HttpUtility]::UrlEncode($CefFileName).Replace("%2b", "%2B")
538+
# The spotify build server uses case sensitive urls now, need to use EscapeDataString instead of UrlEncode
539+
$UriEncodedFileName = [System.Uri]::EscapeDataString($CefFileName)
539540
$FullUri = $CefBuildServerUrl + $UriEncodedFileName
540541
Write-Diagnostic "Downloading $FullUri this will take a while as the file is $CefFileSize MB."
541542

0 commit comments

Comments
 (0)