jitendratheta commented on a change in pull request #4243: Add support for
passing headers in pinot client
URL: https://github.com/apache/incubator-pinot/pull/4243#discussion_r288264618
##########
File path:
pinot-api/src/main/java/org/apache/pinot/client/JsonAsyncHttpPinotClientTransport.java
##########
@@ -58,7 +65,13 @@ public BrokerResponse executeQuery(String brokerAddress,
String query)
final String url = "http://" + brokerAddress + "/query";
- final Future<Response> response = _httpClient.preparePost(url)
+ AsyncHttpClient.BoundRequestBuilder request =
_httpClient.preparePost(url);
+
+ if(_headers != null) {
+ _headers.forEach( (k,v) -> request.addHeader(k, v));
Review comment:
Thanks. Made the changes.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]