Warning: Content type detection for rest requests is deprecated
scott-fleischman opened this issue · 1 comments
scott-fleischman commented
I'm trying out this library and I noticed the following warning being returned by Elastic. I am using Database.V5.Bloodhound
and calling createIndex
as in the example. Is this something that should be fixed in Bloodhound?
Response
{ responseStatus = Status
{ statusCode = 200
, statusMessage = "OK"
}
, responseVersion = HTTP/1.1
, responseHeaders =
[
( "Warning"
, "299 Elasticsearch-5.5.1-19c13d0 "Content type detection for rest requests is deprecated. Specify the content type using the [Content-Type] header." "Thu, 03 Aug 2017 23:48:20 GMT""
)
,
( "content-type"
, "application/json; charset=UTF-8"
)
,
( "content-encoding"
, "gzip"
)
,
( "transfer-encoding"
, "chunked"
)
]
, responseBody = "{"acknowledged":true,"shards_acknowledged":true}"
, responseCookieJar = CJ { expose = [] }
, responseClose' = ResponseClose
}
scott-fleischman commented
Seems to be fixed in the latest release (0.15). Thanks!