BewareMyPower commented on a change in pull request #13112:
URL: https://github.com/apache/pulsar/pull/13112#discussion_r761862435



##########
File path: pulsar-client-cpp/lib/HTTPLookupService.cc
##########
@@ -38,6 +38,14 @@ const static int MAX_HTTP_REDIRECTS = 20;
 const static std::string PARTITION_METHOD_NAME = "partitions";
 const static int NUMBER_OF_LOOKUP_THREADS = 1;
 
+static inline bool needRedirection(long code) {
+    if (code == 307 || code == 302 || code == 301) {
+        return true;
+    }
+
+    return false;

Review comment:
       ```suggestion
       return (code == 307 || code == 302 || code == 301);
   ```




-- 
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]


Reply via email to