Rest client delete_if error
mujohn26 opened this issue · comments
John MUGIRANEZA commented
Hi all, I'm trying to use the rest clients to make an HTTP request on the auth0 request but I'm getting an undefined delete_if error message.
How I'm implementing this.
` user_data = {}
headers = {
Authentication: Bearer token,
'Content-Type':'application/json',
'Access-Control-Allow-Origin': '*'
}
RestClient.post(domain, user_data.to_json, headers.to_json)`
helmiattastify commented
Hi @mujohn26 did you add content_type: :json?
RestClient.post(domain, user_data.to_json, headers, content_type: :json)