Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

Add default content-type headers to support ES6.0 #29

Merged
merged 1 commit into from Nov 27, 2017
Merged

Add default content-type headers to support ES6.0 #29

merged 1 commit into from Nov 27, 2017

Conversation

ciscorn
Copy link
Contributor

@ciscorn ciscorn commented Nov 26, 2017

Since ES6.0, all requests must pass the "strict content-type checking".

This PR is based on the following commits on elasticsearch-py:

Without this, the following error occurs with ES6.0 and later:

TransportError(406, 'Content-Type header [application/octet-stream] is not supported', {'error': 'Content-Type header [application/octet-stream] is not supported', 'status': 406})

Closes #27 #28

@honzakral
Copy link
Contributor

Thank you for the patch, @ciscorn!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants