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:
proller 2017-02-28 00:09:57 +03:00 committed by alexey-milovidov
parent 57c336f267
commit 5cf6f4d8c1

View File

@ -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);