Skip to content

PUT/POST also need set headers like GET operate #7

@kiddy818

Description

@kiddy818

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"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions