Replies: 1 comment 3 replies
-
@mackoj I think there's definitely something to this. And I think we probably don't want to be so strict with the parsing, though. Instead, we could use Body(.json(BuildRoute.BodyParameters.self))
// =
Body(.json(BuildRoute.BodyParameters.self))
.baseRequestData(.init(headers: ["Content-Type": ["application/json"]])) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
If we use a Route like this one. Should the
Content-Type
be set automatically toapplication/json
?It remove this
Headers { Field("Content-Type") { Parse { "application/json" } } }
Thanks,
Beta Was this translation helpful? Give feedback.
All reactions