Skip to content

Commit

Permalink
Fix crash when following redirect if no headers are passed
Browse files Browse the repository at this point in the history
  • Loading branch information
maddie480 committed Dec 23, 2024
1 parent 6782e25 commit 070af11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ and only contains the latest changes.
Its purpose is to be shown in Olympus when updating.

#changelog#
∙ Fixed Lönn freezing during startup when ran through Olympus on Windows
∙ Fixed crash when following redirect while downloading a mod
1 change: 1 addition & 0 deletions src/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ function utils.download(url, headers)
if not redirect then
return false, code, body
end
headers = headers or {}
headers["Referer"] = url
url = redirect
goto retry
Expand Down

0 comments on commit 070af11

Please sign in to comment.