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

blob: permit skipping the configuration of the Content-Disposition header #4832

Merged

Conversation

mvisonneau
Copy link
Contributor

@mvisonneau mvisonneau commented May 3, 2024

This change would allow users to disable the Content-Disposition header that is set for blob storage operations. The application will continue to set a default value for Content-Disposition of attachment; filename={{.Filename}} if no value was provided by the user. However, with this change, users can now specifically disable this header by setting the value to "-" in the configuration.

We feel this would be a nice solution for this issue: Homebrew/brew#15604

…ader

This change allows users to disable the `Content-Disposition` header that is set for blob storage operations. The application will continue to set a default value for `Content-Disposition` of `attachment; filename={{.Filename}}` if no value was provided by the user. However, with this change, users can now specifically disable this header by setting the value to "-" in the configuration.

We feel this would be a nice solution for this issue: Homebrew/brew#15604
@pull-request-size pull-request-size bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label May 3, 2024
@caarlos0
Copy link
Member

this seems like a good compromise, thanks!

Copy link

codecov bot commented May 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.78%. Comparing base (c68d830) to head (8a9e0d6).
Report is 249 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4832      +/-   ##
==========================================
- Coverage   83.77%   82.78%   -1.00%     
==========================================
  Files         135      139       +4     
  Lines       13029    11216    -1813     
==========================================
- Hits        10915     9285    -1630     
+ Misses       1677     1481     -196     
- Partials      437      450      +13     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@caarlos0 caarlos0 merged commit 3c0c714 into goreleaser:main May 10, 2024
11 of 12 checks passed
@github-actions github-actions bot added this to the v1.26.0 milestone May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants