file /src/elasticsearch/api/namespace/common.cr
line 79: response = HTTP::Client.post(url: endpoint, body: post_data) and
line 82: response = HTTP::Client.put(url: endpoint, body: post_data)
need set headers too, like line 76's GET methods.
, headers: HTTP::Headers{"Content-Type" => "application/json"}