Status code 411 on PUT with no body
Closed this issue · 0 comments
sharwinbobde commented
Hi,
I'm using keycloak crate version 21.0.101
with Keycloak 20.0.
I was trying to use the realm_users_with_id_groups_with_group_id_put
method, which on execution gives a 411 response code with the message "POST requests require a Content-length header."
The workaround for me is adding .header("Content-Length", "0")
to the RequestBuilder
to indicate there is no body.
I'd like to patch all the empty-bodied PUT requests in generated_rest.rs