You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2018/02/08 17:49:11 UTC

[GitHub] dewrich closed pull request #1862: [Issue-1855] - messing with the hostname causes mismatches when the ssl keys are upd?

dewrich closed pull request #1862: [Issue-1855] - messing with the hostname causes mismatches when the ssl keys are upd?
URL: https://github.com/apache/incubator-trafficcontrol/pull/1862
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/traffic_portal/app/src/common/api/DeliveryServiceSslKeysService.js b/traffic_portal/app/src/common/api/DeliveryServiceSslKeysService.js
index 21d8edd7c5..a4d5cbc58c 100644
--- a/traffic_portal/app/src/common/api/DeliveryServiceSslKeysService.js
+++ b/traffic_portal/app/src/common/api/DeliveryServiceSslKeysService.js
@@ -76,18 +76,6 @@ var DeliveryServiceSslKeysService = function($http, $q, locationUtils, messageMo
         $http.get(ENV.api['root'] + "deliveryservices/xmlId/" + deliveryService.xmlId + "/sslkeys?decode=true")
         .then(
             function(result) {
-                var url = deliveryService.exampleURLs[0];
-                if( deliveryService.protocol == 2 && deliveryService.exampleURLs > 1 ) {
-                    url = deliveryService.exampleURLs[1];
-                }
-                var hostName = url.split("://")[1];
-                if (deliveryService.type.indexOf('HTTP') != -1) {
-                    var parts = hostName.split(".");
-                    parts[0] = "*";
-                    hostName = parts.join(".");
-                }
-                result.data.response.hostname = hostName;
-                
                 request.resolve(result.data.response);
             },
             function(fault) {


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services