Fix events destination url parsing for IPv6

Currently while parsing destination URL, host address enclosed in [] braces for IPv6 addresses, so Resolve hostname fails for IPv6 addresses because of this invalid hostname which is enclosed in [] braces.

This commit uses encoded_host_address() method to fix this parsing hostname for IPv6 address.

Tested By: Configured redfish event subscription with IPv6 destination URI verified parsing logic of destination URI with IPv6 addresses.

Change-Id: I0e43468086ae0b961eb724de30e211d61ccda2d8
Signed-off-by: Ravi Teja <raviteja28031990@gmail.com>
diff --git a/http/utility.hpp b/http/utility.hpp
index b35811a..572caec 100644
--- a/http/utility.hpp
+++ b/http/utility.hpp
@@ -510,7 +510,7 @@
 
     port = setPortDefaults(url.value());
 
-    host = url->encoded_host();
+    host = url->encoded_host_address();
 
     path = url->encoded_path();
     if (path.empty())