Add body_as_json configuration parameter
Allow the user to configure the client to use a Content-Type of application/json for all requests with a body unless the request explicitly provides its own Content-Type header.
Using application/json provides a broader range of compatibility with the GitLab API, especially for calls where the body expects more complex data structures.
This defaults to false for backwards compatibility.
Note that I believe always using application/json by default would be a good change for the next non-backwards-compatible release. I don't believe any part of the GitLab API cannot accept JSON bodies (excepting file uploads requiring multipart form-data, such as https://docs.gitlab.com/api/secure_files/#create-secure-file)
Thank you!
Released in version 6.0.0 https://github.com/NARKOZ/gitlab/releases/tag/v6.0.0