Replies: 1 comment 3 replies
-
hi @Magicloud , have you tried setting it directly in the Response? there's an example in the documentation on how you can do that. |
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
-
I am writing a webhook tool for a Go application, which checks the response content type via direct string equality.
And when I used
ContentType::new("application", "json").with_params(("version", "1"))
to set it, the result was "application/external.dns.webhook+json; version=1", which failed the comparison since in the Go code, there is no space before "version".I wonder if there is a simple way I can remove the space.
Beta Was this translation helpful? Give feedback.
All reactions