Skip to content

Commit

Permalink
Added API version to curl request
Browse files Browse the repository at this point in the history
Closes #38
  • Loading branch information
Adam-Kay committed Dec 29, 2023
1 parent e0fa0ac commit e20ff1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion b-e updater.bat
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ if /i "%1"=="--silent" (
if exist "batch encoder %UpdateVersion%%append%-u.bat" (del "batch encoder %UpdateVersion%%append%-u.bat")
echo %icongray% i %formatend% Downloading information...
set "updateFileName=batch_update.json"
curl --silent -L -H "Accept: application/vnd.github+json" -o %updateFileName% https://api.github.com/repos/Adam-Kay/Batch-Encoder/releases/latest
curl --silent -L -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version:2022-11-28" -o %updateFileName% https://api.github.com/repos/Adam-Kay/Batch-Encoder/releases/latest
if not exist "%updateFileName%" (goto AutoUpdateError)

>%TEMP%\batch_update.tmp findstr "tag_name" %updateFileName%
Expand Down
2 changes: 1 addition & 1 deletion batch encoder.bat
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ if defined par_updated-from (
if exist "batch encoder %UpdateVersion%%append%-u.bat" (del "batch encoder %UpdateVersion%%append%-u.bat")
echo %icongray% i %formatend% Downloading information...
set "updateFileName=batch_update.json"
curl --silent -L -H "Accept: application/vnd.github+json" -o %updateFileName% https://api.github.com/repos/Adam-Kay/Batch-Encoder/releases/latest
curl --silent -L -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version:2022-11-28" -o %updateFileName% https://api.github.com/repos/Adam-Kay/Batch-Encoder/releases/latest
if not exist "%updateFileName%" (goto AutoUpdateError)

>%TEMP%\batch_update.tmp findstr "tag_name" %updateFileName%
Expand Down

0 comments on commit e20ff1b

Please sign in to comment.