From 70c7da2136d8a91d60324f2037ffe5b48efd950f Mon Sep 17 00:00:00 2001 From: cpburnz Date: Fri, 14 Aug 2020 12:04:48 -0400 Subject: [PATCH] Fix SolrCoreAdmin._get_url content-type --- pysolr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pysolr.py b/pysolr.py index 57891676..7b4a7c63 100644 --- a/pysolr.py +++ b/pysolr.py @@ -1307,7 +1307,7 @@ def _get_url(self, url, params=None, headers=None): if params is None: params = {} if headers is None: - headers = {} + headers = {'Content-Type': 'application/x-www-form-urlencoded'} resp = requests.get(url, data=safe_urlencode(params), headers=headers) return force_unicode(resp.content)