What's Changed
Bugfix
Fix the problem that Json
has the wrong Content-Type
In the previous code, Json
only implemented TryInto<Body>
, but not IntoResponse
. IntoResponse
is derived from impl IntoResponse for T where T: TryInto<Body>
, which can convert Json
to ServerResponse
, but lacks Content-Type
.
To solve this problem, we removed TryInto<Body>
of Json
, used IntoResponse
of Json
instead with inserting Content-Type
into ServerResponse
. In addition, we also implemented IntoResponse
for Form
with inserting Content-Type
.
Full Changelog: volo-http-0.2.5...volo-http-0.2.6