Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement optional redirect when max-size is exceeded #80

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

ewdurbin
Copy link
Contributor

@ewdurbin ewdurbin commented Jun 18, 2024

Description

For our use-case, we prefer to display a static image, indicating why the image is not loading, namely:

PyPI Image Too Large Image

This is now one of the only divergences that aren't deployment centric in our fork of go-camo, so I'd be happy to do whatever is necessary to get it merged so we can just run from published images :)

Checklist

  • Code compiles correctly
  • Created tests (if appropriate)
  • All tests passing
  • Extended the README / documentation (if necessary)

For [our](https://pypi.org) use-case, we prefer to display a static image,
indicating why the image is not loading, namely:

![PyPI Image Too Large Image](https://warehouse-camo.ingress.us-east-2.pypi.io/d1e139dd79d95783a48690c79813071314e45a69/68747470733a2f2f73746f726167652e676f6f676c65617069732e636f6d2f707970692d6173736574732f696d6167652d746f6f2d6c617267652d31306d622e706e67)

This is now one of the only divergences that aren't deployment centric in our
fork of go-camo, so I'd be happy to do whatever is necessary to get it merged
so we can just run from published images :)
@dropwhile
Copy link
Member

@ewdurbin Patch looks good. Making the new feature a non-default cli flag is great. ❤️

@dropwhile dropwhile merged commit 01493b8 into cactus:master Jun 18, 2024
4 checks passed
@ewdurbin ewdurbin deleted the max_size_redirect branch June 18, 2024 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants