mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Fix host header in http request to dictionaries (#526)
* Tests: dictionaries: allow completely disable mongo and mysql * Fix host header in http request to dictionaries
This commit is contained in:
parent
57c336f267
commit
5cf6f4d8c1
@ -56,6 +56,8 @@ ReadWriteBufferFromHTTP::ReadWriteBufferFromHTTP(
|
||||
#endif
|
||||
|
||||
Poco::Net::HTTPRequest request(method, uri.getPathAndQuery(), Poco::Net::HTTPRequest::HTTP_1_1);
|
||||
request.setHost(uri.getHost()); // use original, not resolved host name in header
|
||||
|
||||
if (out_stream_callback)
|
||||
request.setChunkedTransferEncoding(true);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user