Skip to content

Commit

Permalink
release: 2.33.5
Browse files Browse the repository at this point in the history
- Fixed logging filter not working properly
  • Loading branch information
ericswpark committed Apr 6, 2024
1 parent b19f582 commit d2e3555
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 26 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,15 @@ The format is based on [Keep a Changelog][keep-a-changelog].

# [Unreleased]

[Unreleased]: https://github.com/shipperstack/shipper/compare/2.33.4...HEAD
[Unreleased]: https://github.com/shipperstack/shipper/compare/2.33.5...HEAD


# [2.33.5] - 2024-04-06

## Changed
- Fixed logging filter not working properly

[2.33.5]: https://github.com/shipperstack/shipper/compare/2.33.4...2.33.5


# [2.33.4] - 2024-04-06
Expand Down
24 changes: 2 additions & 22 deletions server/downloads/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,29 +62,9 @@ def get(self, request, *args, **kwargs):


def download_check_view(request, codename, file_name):
build = get_object_or_404(Build, file_name=file_name, device__codename=codename)

response = HttpResponse()

if build.zip_file.name:
response["X-Accel-Redirect"] = f"/internal/media/{build.zip_file.name}"
response["Last-Modified"] = time.strftime(
"%a,%e %b %Y %H:%M:%S %Z",
time.gmtime(os.path.getmtime(build.zip_file.path)),
)
response["Content-Disposition"] = (
f'attachment; filename="{build.zip_file_basename()}"'
)
response["Content-Type"] = "application/octet-stream"

if build.is_archived:
limit_speed = config.SHIPPER_DOWNLOADS_ARCHIVE_THROTTLE * 1000 * 1000
response["X-Accel-Limit-Rate"] = str(limit_speed)
else:
response["X-Accel-Limit-Rate"] = "off"
else:
response.status_code = 503
response.content = """
response.status_code = 503
response.content = """
The file is currently not available on the main server. Consider using one of
the mirror servers if there are any available."""

Expand Down
2 changes: 1 addition & 1 deletion server/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.33.4
2.33.5
2 changes: 1 addition & 1 deletion shippy/shippy/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "2.33.4"
__version__ = "2.33.5"
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.33.4
2.33.5

0 comments on commit d2e3555

Please sign in to comment.