Skip to content

Commit 2a4bb0f

Browse files
committed
Reintroduce the Content-Type header, deleted by mistake.
1 parent 8b04b52 commit 2a4bb0f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

elastic_site_search/client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ def _put(self, path, params={}, data={}):
217217

218218
def _request(self, method, path, params={}, data={}):
219219
headers = {}
220+
headers['Content-Type'] = 'application/json'
220221
headers['X-Swiftype-Client'] = CLIENT_NAME
221222
headers['X-Swiftype-Client-Version'] = VERSION
222223
if self.__username is not None and self.__password is not None:

0 commit comments

Comments
 (0)