lordgamez commented on code in PR #1362:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1362#discussion_r911906233


##########
libminifi/include/utils/HTTPUtils.h:
##########
@@ -31,14 +31,14 @@ so we convert localhost to our local hostname.
 inline bool parse_http_components(const std::string &url, std::string &port, 
std::string &scheme, std::string &path) {
 #ifdef WIN32
   auto hostname = 
(url.find(org::apache::nifi::minifi::io::Socket::getMyHostName()) != 
std::string::npos ? org::apache::nifi::minifi::io::Socket::getMyHostName() : 
"localhost");
-  std::string regex_str = "^(http|https)://(" + hostname + ":)([0-9]+)?(/.*)$";
+  std::string regex_str = "(http|https)://(" + hostname + ":)([0-9]+)?(/.*)$";
 #else
-  std::string regex_str = "^(http|https)://(localhost:)([0-9]+)?(/.*)$";
+  std::string regex_str = "(http|https)://(localhost:)([0-9]+)?(/.*)$";

Review Comment:
   Good catch, removed in 4d1784c2a28e7e9982f71ba3c77d0fac4f88c0c4



-- 
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: issues-unsubscr...@nifi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to