Skip to content

Commit

Permalink
Reintroduce the Content-Type header, deleted by mistake.
Browse files Browse the repository at this point in the history
  • Loading branch information
afoucret committed Aug 8, 2019
1 parent 8b04b52 commit 2a4bb0f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions elastic_site_search/client.py
Expand Up @@ -217,6 +217,7 @@ def _put(self, path, params={}, data={}):

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

0 comments on commit 2a4bb0f

Please sign in to comment.