You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/12/29 19:28:35 UTC
[GitHub] [pulsar-manager] Apurva007 commented on a diff in pull request #503: Fix 307 redirect errors when connecting to multi-broker cluster
Apurva007 commented on code in PR #503:
URL: https://github.com/apache/pulsar-manager/pull/503#discussion_r1059117422
##########
src/main/java/org/apache/pulsar/manager/zuul/HttpsClientConfiguration.java:
##########
@@ -46,6 +52,24 @@ public class HttpsClientConfiguration {
@Bean
public CloseableHttpClient httpClient() throws Exception {
+ LaxRedirectStrategy customLaxRedirectStrategy = new LaxRedirectStrategy() {
+ private final String[] redirectHttpMethods = new String[] {
+ HttpGet.METHOD_NAME,
+ HttpPost.METHOD_NAME,
+ HttpHead.METHOD_NAME,
+ HttpDelete.METHOD_NAME,
+ HttpPut.METHOD_NAME
+ };
+ @Override
+ protected boolean isRedirectable(final String method) {
+ for (final String m: redirectHttpMethods) {
Review Comment:
@nodece Thanks for the review. I have made the suggested changes. Please can you review it again.
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org