Skip to content

Commit e1d1163

Browse files
[win] specify accept header when downloading mysql meta (#8009)
as reported in #8004 dev.mysql.com behaviour has changed, it requires "Accept: text/html" for download page Co-authored-by: Miguel Nieto <m.nieto@kevull.com>
1 parent 2a1b5d1 commit e1d1163

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

images/win/scripts/Installers/Install-MysqlCli.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Install-Binary -Url $InstallerURI -Name $InstallerName -ArgumentList $ArgumentLi
1515
$MysqlVersionMajorMinor = $MysqlVersion.ToString(2)
1616

1717
if ($MysqlVersion.Build -lt 0) {
18-
$MysqlVersion = (Invoke-RestMethod -Uri "https://dev.mysql.com/downloads/mysql/${MysqlVersionMajorMinor}.html" |
18+
$MysqlVersion = (Invoke-RestMethod -Uri "https://dev.mysql.com/downloads/mysql/${MysqlVersionMajorMinor}.html" -Headers @{'Accept'='text/html'} |
1919
Select-String -Pattern "${MysqlVersionMajorMinor}\.\d+").Matches.Value
2020
}
2121

0 commit comments

Comments
 (0)