Skip to content

Commit 9a97183

Browse files
authored
Don't specify Host header explicitly (#673)
Just let the http lib handle that for us, we shouldn't be doing that here at all. Currently we are not handling punycode (if used) and ports, this way we don't have to care about this and just let the lib do the best thing.
1 parent 29461cf commit 9a97183

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

splunklib/binding.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1559,7 +1559,6 @@ def request(url, message, **kwargs):
15591559
body = message.get("body", "")
15601560
head = {
15611561
"Content-Length": str(len(body)),
1562-
"Host": host,
15631562
"User-Agent": "splunk-sdk-python/%s" % __version__,
15641563
"Accept": "*/*",
15651564
"Connection": "Close",

0 commit comments

Comments
 (0)