Skip to content

Should set Content-Type to application/json #400

@jordansissel

Description

@jordansissel
>> client = Elasticsearch::Client.new
>> client.index(index: "foo", type: "OK", body: {})
% nc -l 9200
POST /foo/OK HTTP/1.1
User-Agent: Faraday v0.11.0
Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept: */*
Connection: close
Host: localhost:9200
Content-Length: 2
Content-Type: application/x-www-form-urlencoded

Expected Content-Type: application/json

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions