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

Fix encoding non-text assets of Web Console #270

Merged
merged 4 commits into from May 16, 2023
Merged

Fix encoding non-text assets of Web Console #270

merged 4 commits into from May 16, 2023

Conversation

atimin
Copy link
Member

@atimin atimin commented May 16, 2023

Closes #262

Please check if the PR fulfills these requirements

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • CHANGELOG.md have been updated (for bug fixes / features / docs)

What kind of change does this PR introduce?

Bug fix

What is the current behavior?

AssetManager returns an asset as a string, what caused an UTF-8 encoding error when it tries to decode non-text content.

What is the new behavior?

AssetManager returns Bytes and HTTP API level checks the mime type before encoding.

Does this PR introduce a breaking change?

No

Other information:

@atimin atimin changed the title Reductstore 262 Fix encoding non-text assets May 16, 2023
@atimin atimin changed the title Fix encoding non-text assets Fix encoding non-text assets of Web Console May 16, 2023
@atimin atimin merged commit b2238f8 into main May 16, 2023
14 checks passed
@atimin atimin deleted the reductstore-262 branch May 16, 2023 20:35
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.

Bug: No logo and favicon in Web Console
1 participant