Skip to content

Commit 1621094

Browse files
committed
Use upper-case "Host" header
Closes #614
1 parent b41c733 commit 1621094

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Elasticsearch/Connections/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public function performRequest($method, $uri, $params = null, $body = null, $opt
156156
'uri' => $this->getURI($uri, $params),
157157
'body' => $body,
158158
'headers' => array_merge([
159-
'host' => [$this->host]
159+
'Host' => [$this->host]
160160
], $this->headers)
161161
];
162162

0 commit comments

Comments
 (0)