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

Add binary-configuration to servlet-core #504

Closed
wants to merge 3 commits into from
Closed

Conversation

timyates
Copy link
Contributor

This class was used in both AWS and Azure, so we have pulled it up into servlet-core

This class was used in both AWS and Azure, so we have pulled it up into servlet-core
Copy link
Contributor

@sdelamo sdelamo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It misses a test

@timyates timyates requested a review from sdelamo June 27, 2023 10:34
Copy link
Contributor

@sdelamo sdelamo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a unit test

@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@sdelamo
Copy link
Contributor

sdelamo commented Jun 28, 2023

I think more about this I think we should do this in core and it should be probably configurable. For example: A user may want to set:

micronaut.http.binary-types.additional-types

to add extra types to the list we provide by default.

@sdelamo sdelamo marked this pull request as draft June 28, 2023 07:27
timyates added a commit to micronaut-projects/micronaut-core that referenced this pull request Jun 30, 2023
This is used by the AWS and Azure modules.  Originally we moved this duplication to Servlet-core:

micronaut-projects/micronaut-servlet#504

But it was then decided that core was a better home for it.

It specified defaults, and allows users to ignore these defaults, and add their own mime types.
@timyates
Copy link
Contributor Author

Superseded by micronaut-projects/micronaut-core#9530

@timyates timyates closed this Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants