[bug] MIME type is conflated with Content-Type #5878
Labels
status: needs triage
This issue needs to triage, applied to new issues
type: breaking change
This issue or pull request will introduce a breaking change and requires major version bump
type: bug
Describe the bug
If I intend to set the MIME type of an HTTP response via
.set_mimetype()
(https://docs.rs/tauri/latest/tauri/http/struct.Response.html#method.set_mimetype) it actually sets its full Content-Type:tauri/core/tauri-runtime-wry/src/lib.rs
Line 297 in 3dc38b1
where the MIME type is only part of, amongst charset and boundary.
This is mainly an issue of naming I think but one that leads to unexpected behavior.
Reproduction
No response
Expected behavior
If I use the
.set_mimetype
method it sets only the MIME type.If a method is intended to set the content type it should be called
set_content_type
.Platform and versions
Stack trace
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: