Skip to content

Blazor API Review: Misc M.A.Components.Server #12260

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

Merged
merged 3 commits into from
Jul 17, 2019

Conversation

rynowak
Copy link
Member

@rynowak rynowak commented Jul 16, 2019

See: #12221

@@ -33,7 +33,7 @@ public void ConfigureServices(IServiceCollection services)
options.MimeTypes = ResponseCompressionDefaults.MimeTypes.Concat(new[]
{
MediaTypeNames.Application.Octet,
WasmMediaTypeNames.Application.Wasm
"application/wasm",
Copy link
Member

Choose a reason for hiding this comment

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

A string literal? You can do that??

Copy link
Member

Choose a reason for hiding this comment

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

That's not enough indirection, please make a static property backed by a constant.

Copy link
Member Author

Choose a reason for hiding this comment

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

You've just been visited by the #LiteralGang - upvote 20 times or else you have to take everything literally for a week.

@rynowak rynowak force-pushed the rynowak/server-misc-api-review branch from ae2b6b6 to 7bf9aef Compare July 17, 2019 15:51
@rynowak rynowak merged commit fedf03b into master Jul 17, 2019
@ghost ghost deleted the rynowak/server-misc-api-review branch July 17, 2019 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants