pranavbhole commented on code in PR #16974:
URL: https://github.com/apache/druid/pull/16974#discussion_r1755604883
##########
processing/src/main/java/org/apache/druid/data/input/impl/HttpEntity.java:
##########
@@ -80,10 +85,15 @@ public Predicate<Throwable> getRetryCondition()
return t -> t instanceof IOException;
}
- public static InputStream openInputStream(URI object, String userName,
PasswordProvider passwordProvider, long offset)
+ public static InputStream openInputStream(URI object, String userName,
PasswordProvider passwordProvider, long offset, final Map<String, String>
requestHeaders)
throws IOException
{
final URLConnection urlConnection = object.toURL().openConnection();
+ if (requestHeaders.size() > 0) {
Review Comment:
fixed
##########
processing/src/main/java/org/apache/druid/data/input/impl/HttpInputSource.java:
##########
@@ -64,13 +66,15 @@ public class HttpInputSource
private final PasswordProvider httpAuthenticationPasswordProvider;
private final SystemFields systemFields;
private final HttpInputSourceConfig config;
+ private final Map<String, String> headersMap;
Review Comment:
fixed
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]